Bugzilla – Attachment 131980 Details for
Bug 29999
Replace the use of jQueryUI tabs on authorized values administration page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29999: (follow-up) Show the remote image tab if selected
Bug-29999-follow-up-Show-the-remote-image-tab-if-s.patch (text/plain), 3.08 KB, created by
Jonathan Druart
on 2022-03-21 15:14:50 UTC
(
hide
)
Description:
Bug 29999: (follow-up) Show the remote image tab if selected
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-03-21 15:14:50 UTC
Size:
3.08 KB
patch
obsolete
>From 5fb0e56302e1157f69e3b94e205cc6b3d63ea23f Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 17 Mar 2022 18:17:44 +0000 >Subject: [PATCH] Bug 29999: (follow-up) Show the remote image tab if selected > >This follow-up corrects the markup so that if a value is entered in the >"Remote image" field, the correct tab will be selected upon page load. > >The patch also corrrects the input name on the "No image" field so that >the option works correctly. > >To test, apply the patch and edit an authorized value. > >- Select an icon from an icon set. Save, and then re-edit. > - The correct icon set tab should be activated. >- Select "No image," save, and re-edit. > - The "No image" tab should be selected. >- On the "Remote image" tab, enter a remote image url, e.g. > https://via.placeholder.com/50/FF0000/FFFFFF.png. Save and re-edit. >- The "Remote image" should be selected. > >Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/en/modules/admin/authorised_values.tt | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >index 12336be2438..c59f878a0e3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt >@@ -189,7 +189,7 @@ > <div id="none" role="tabpanel" class="tab-pane"> > <div class="authval-icons"> > <label for="noimage">No image: >- <input type="radio" name="imageurl" id="noimage" value="removeImage" /> >+ <input type="radio" name="image" id="noimage" value="removeImage" /> > </label> > </div> > </div> <!-- /.tab-pane --> >@@ -221,7 +221,11 @@ > </div> <!-- /.tab-pane --> > [% END # /FOREACH imageset %] > >- <div id="remote" role="tabpanel" class="tab-pane"> >+ [% IF av.imageurl.match('^http') %] >+ <div id="remote" role="tabpanel" class="tab-pane active"> >+ [% ELSE %] >+ <div id="remote" role="tabpanel" class="tab-pane"> >+ [% END %] > <label for="remote_image_check"> Remote image:</label> > [% IF av.imageurl.match('^http') %] > <input type="radio" id="remote_image_check" name="image" value="remoteImage" checked="checked" /> >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 29999
:
130053
|
130055
|
131068
|
131849
|
131851
|
131852
|
131979
| 131980