Bugzilla – Attachment 34154 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]
[PASSED QA] Bug 13235: Move onclick attr to javacsript code
PASSED-QA-Bug-13235-Move-onclick-attr-to-javacsrip.patch (text/plain), 2.03 KB, created by
Kyle M Hall (khall)
on 2014-12-05 15:32:07 UTC
(
hide
)
Description:
[PASSED QA] Bug 13235: Move onclick attr to javacsript code
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-12-05 15:32:07 UTC
Size:
2.03 KB
patch
obsolete
>From 95d7f05fc328e164aa6c16f2cfe7d46b48c09dd2 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] [PASSED QA] 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> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../prog/en/includes/patron-search.inc | 9 +++++++-- > 1 files 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 %] >-- >1.7.2.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 13235
:
33502
|
34073
|
34084
|
34085
|
34153
|
34154
|
35472
|
35473