Bugzilla – Attachment 131849 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), 2.94 KB, created by
Owen Leonard
on 2022-03-17 18:31:16 UTC
(
hide
)
Description:
Bug 29999: (follow-up) Show the remote image tab if selected
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2022-03-17 18:31:16 UTC
Size:
2.94 KB
patch
obsolete
>From eafb10b580aed03a312335bb06fddc6d255a6bf8 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. >--- > .../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 12336be243..c59f878a0e 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.20.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