Bugzilla – Attachment 34085 Details for
Bug 13235
Revise layout of patron search form
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13235: Move onclick attr to javacsript code
Bug-13235-Move-onclick-attr-to-javacsript-code.patch (text/plain), 1.96 KB, created by
Jonathan Druart
on 2014-12-03 08:10:30 UTC
(
hide
)
Description:
Bug 13235: Move onclick attr to javacsript code
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-12-03 08:10:30 UTC
Size:
1.96 KB
patch
obsolete
>From bab6e214ee738bc89ab15c96f3fdd8907b3bf8fd Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 3 Dec 2014 09:09:19 +0100 >Subject: [PATCH] Bug 13235: Move onclick attr to javacsript code > >Refactor 1 line of code and add a preventDefault. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 9 +++++++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >index 345de6a..4a730b1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc >@@ -7,8 +7,8 @@ > <form action="/cgi-bin/koha/members/member.pl" method="post"> > <input id="searchmember" data-toggle="tooltip" size="25" class="focus" name="searchmember" type="text" value="[% searchmember %]"/> > <input type="hidden" name="quicksearch" value="1" /> >- <span class="filteraction" id="filteraction_off"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[-]</a></span> >- <span class="filteraction" id="filteraction_on"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[+]</a></span> >+ <span class="filteraction" id="filteraction_off"> <a href="#">[-]</a></span> >+ <span class="filteraction" id="filteraction_on"> <a href="#">[+]</a></span> > > <input value="Search" class="submit" type="submit" /> > >@@ -126,6 +126,11 @@ > </div><!-- /gradient --> > <script type="text/javascript">//<![CDATA[ > $(document).ready(function() { >+ $("#filteraction_off, #filteraction_on").on('click', function(e) { >+ e.preventDefault(); >+ $('#filters').toggle(); >+ $('.filteraction').toggle(); >+ }); > [% IF ( advsearch ) %]$("#filteraction_on").toggle(); > [% ELSE %]$("#filters").toggle(); > $("#filteraction_off").toggle();[% END %] >-- >2.1.0
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 13235
:
33502
|
34073
|
34084
|
34085
|
34153
|
34154
|
35472
|
35473