[Koha-patches] [PATCH] Bug 10439: FIX modify the library for a notice.
Srdjan
srdjan at catalyst.net.nz
Tue Jun 11 05:46:52 CEST 2013
From: Jonathan Druart <jonathan.druart at biblibre.com>
2 javascript functions should be apply only in a specific case, not for all
views.
Test plan:
- switch on the IndependentBranches pref
- try to change the library for a notice. Before the patch, no change is
applied.
Signed-off-by: Srdjan <srdjan at catalyst.net.nz>
---
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
index f210715..52e2b83 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt
@@ -15,14 +15,16 @@ $(document).ready(function() {
],
"bPaginate": false
}));
- $('#branch').change(function() {
+ [% IF no_op_set %]
+ $('#branch').change(function() {
$('#op').val("");
$('#selectlibrary').submit();
- });
- $('#newnotice').click(function() {
+ });
+ $('#newnotice').click(function() {
$('#op').val("add_form");
return true;
- });
+ });
+ [% END %]
});
[% IF ( add_form ) %]
--
1.8.1.2
More information about the Koha-patches
mailing list