From 0829f03eef5103339d3f74cf9a300f05cda3277e Mon Sep 17 00:00:00 2001
From: Katrin Fischer
Date: Fri, 17 May 2013 21:12:05 +0200
Subject: [PATCH] [SIGNED-OFF] Bug 9824: Make it possible to apply/cancel
switch
Content-Type: text/plain; charset="utf-8"
Using another existing string 'Apply filter' we are now
able to cancel the filter... and apply it... and cancel it
again... and so on.
Signed-off-by: Owen Leonard
---
acqui/booksellers.pl | 1 +
.../prog/en/modules/acqui/booksellers.tt | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/acqui/booksellers.pl b/acqui/booksellers.pl
index 118034b..6db0bad 100755
--- a/acqui/booksellers.pl
+++ b/acqui/booksellers.pl
@@ -151,5 +151,6 @@ $template->param(
supplier => ( $booksellerid || $supplier ),
count => $supplier_count,
);
+$template->{VARS}->{'allbaskets'} = $allbaskets;
output_html_with_http_headers $query, $cookie, $template->output;
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
index 4064231..006980c 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
@@ -62,7 +62,13 @@ $(document).ready(function() {
[% END %]
- Cancel filter
+
+ [% IF ( allbaskets ) %]
+ Apply filter
+ [% ELSE %]
+ Cancel filter
+ [% END %]
+
[% FOREACH supplier IN loop_suppliers %]
--
1.7.9.5