Bugzilla – Attachment 11454 Details for
Bug 8600
Remove search terms in advanced search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to add link to remove a search term
ButtomRemoveSearchTerm.patch (text/plain), 1.54 KB, created by
Maxime Pelletier
on 2012-08-08 17:44:33 UTC
(
hide
)
Description:
patch to add link to remove a search term
Filename:
MIME Type:
Creator:
Maxime Pelletier
Created:
2012-08-08 17:44:33 UTC
Size:
1.54 KB
patch
obsolete
>From 538ad4bb7dfd682a046c0269c3298fb3a6391e71 Mon Sep 17 00:00:00 2001 >From: Maxime Pelletier <maxime.pelletier@libeo.com> >Date: Mon, 5 Dec 2011 17:16:04 -0500 >Subject: [PATCH] Bug 8600 Add button to remove search terms in advanced search >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >--- > .../opac-tmpl/prog/en/modules/opac-advsearch.tt | 7 +++++++ > 1 files changed, 7 insertions(+), 0 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 216ce8e..97c553b 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-advsearch.tt >@@ -100,6 +100,9 @@ > <input type="text" size="30" name="q" title="Enter search terms" value="" /> > [% IF ( expanded_options ) %] > <!-- [% IF ( search_box.scan_index ) %]<input type="checkbox" name="scan" id="scan" value="1" /> Scan Indexes[% END %] --> >+ [% IF ( !loop.first ) %] >+ <a href="JavaScript:;" class="ButtonLess" title="Remove field" onclick="remove_field(this)">[-]</a> >+ [% END %] > [% IF ( search_box.add_field ) %]<a href="JavaScript:add_field();" id="ButtonPlus" title="Add another field">[+]</a>[% END %] > [% END %] > </p> >@@ -296,6 +299,10 @@ > line.parentNode.appendChild(line.cloneNode(true)); > line.removeChild(ButtonPlus); > } >+ >+ function remove_field(buttonless) { >+ $(buttonless).parent().remove(); >+ } > </script> > > </div> >-- >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 8600
:
11454
|
12399
|
12402
|
12409
|
16560
|
16592
|
18649