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. Signed-off-by: Mirko Tietgen <mirko@abunchofthings.net> Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
b0eeb00d48
commit
ff2b4d1ff5
1 changed files with 1 additions and 3 deletions
|
@ -76,13 +76,11 @@
|
||||||
|
|
||||||
<script type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jqtransform_select.js"></script>
|
<script type="text/javascript" src="/opac-tmpl/lib/jquery/plugins/jquery.jqtransform_select.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
[% IF ( opacuserjs ) %][% opacuserjs %][% END %]
|
||||||
$(function() {
|
$(function() {
|
||||||
//find all form with class jqtransform and apply the plugin
|
//find all form with class jqtransform and apply the plugin
|
||||||
$("form#searchform").jqTransform();
|
$("form#searchform").jqTransform();
|
||||||
});
|
});
|
||||||
|
|
||||||
[% IF ( opacuserjs ) %][% opacuserjs %][% END %]
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- /ADD JQUERY PLUGIN JQTRANSFORM - LIBÉO -->
|
<!-- /ADD JQUERY PLUGIN JQTRANSFORM - LIBÉO -->
|
||||||
|
|
Loading…
Reference in a new issue