Bugzilla – Attachment 18419 Details for
Bug 10359
CCSR theme should apply jqTransform after OpacUserJS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10359: transform masthead dropdown after user JS for CCSR
Bug-10359-transform-masthead-dropdown-after-user-J.patch (text/plain), 1.65 KB, created by
Jared Camins-Esakov
on 2013-05-28 11:48:51 UTC
(
hide
)
Description:
Bug 10359: transform masthead dropdown after user JS for CCSR
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2013-05-28 11:48:51 UTC
Size:
1.65 KB
patch
obsolete
>From 466efa90db73e990381206d2dc8763e6fbabd656 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Tue, 28 May 2013 07:44:35 -0400 >Subject: [PATCH] Bug 10359: transform masthead dropdown after user JS for > CCSR > >Since libraries may want to customize the options in the masthead search >dropdown, which is done via dropdown, it would be better if the select >box were transformed *after* user javascript was run. > >To test: >1) Switch to the CCSR OPAC theme. >2) Add some Javascript to your OpacUserJS that will modify the masthead > search dropdown, such as: > $("select[name='idx']").append("<option value='Host-item,wrdl'>Journal title</option>"); >3) Note that when you view the OPAC, the results in the dropdown are unchanged. >4) Apply patch. >5) Note that your new option now shows up. >6) Sign off. >--- > .../opac-tmpl/ccsr/en/includes/opac-bottom.inc | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/ccsr/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/ccsr/en/includes/opac-bottom.inc >index 0b36813..a0eb3f4 100644 >--- a/koha-tmpl/opac-tmpl/ccsr/en/includes/opac-bottom.inc >+++ b/koha-tmpl/opac-tmpl/ccsr/en/includes/opac-bottom.inc >@@ -76,13 +76,11 @@ > > <script type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jqtransform_select.js"></script> > <script type="text/javascript"> >+[% IF ( opacuserjs ) %][% opacuserjs %][% END %] > $(function() { > //find all form with class jqtransform and apply the plugin > $("form#searchform").jqTransform(); > }); >- >-[% IF ( opacuserjs ) %][% opacuserjs %][% END %] >- > </script> > > <!-- /ADD JQUERY PLUGIN JQTRANSFORM - LIBÃO --> >-- >1.7.9.5
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 10359
:
18419
|
18440
|
18451