Bugzilla – Attachment 18993 Details for
Bug 10444
In advanced search(more), [+] and [-] should behave like links on hover
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10444: Fix prevent the default action on click
Bug-10444-Fix-prevent-the-default-action-on-click.patch (text/plain), 1.38 KB, created by
Kyle M Hall
on 2013-06-14 12:07:24 UTC
(
hide
)
Description:
Bug 10444: Fix prevent the default action on click
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2013-06-14 12:07:24 UTC
Size:
1.38 KB
patch
obsolete
>From e270f5a38395a95819d2d2445b8e1f2ad0df8e10 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 13 Jun 2013 11:11:07 +0200 >Subject: [PATCH] Bug 10444: Fix prevent the default action on click > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../opac-tmpl/prog/en/modules/opac-advsearch.tt | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt >index eeed2eb..6d9ff8e 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt >@@ -338,7 +338,8 @@ > <script type="text/javascript" language="javascript"> > /* This function allows to display a new field to search. > */ >- $(document).on("click", '.ButtonPlus', function() { >+ $(document).on("click", '.ButtonPlus', function(e) { >+ e.preventDefault(); > $('.ButtonLess').show(); > var thisLine = $(this).parent(); > var newLine = thisLine.clone(); >@@ -346,7 +347,8 @@ > thisLine.after(newLine); > }); > >- $(document).on("click", '.ButtonLess', function() { >+ $(document).on("click", '.ButtonLess', function(e) { >+ e.preventDefault(); > if($(this).parent().siblings().length <= 3 ) { > $('.ButtonLess').hide(); > } >-- >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 10444
:
18836
|
18847
|
18851
|
18852
|
18900
|
18901
|
18902
|
18906
|
18918
|
18919
|
18991
|
18992
|
18993
|
18997
|
18998
|
18999