From 54a06c61e688d888a196a3b7125a5c48c5b21823 Mon Sep 17 00:00:00 2001 From: Hector Castro Date: Fri, 24 Jun 2016 15:55:40 -0600 Subject: [PATCH] Bug 16812: Remove multiple onclick event from z3950_auth_search.tt z3950_auth_search.tt has various onclick events used in links. This patch propose to triger event via JQuery .on() Also add Font Awesome Icons to "Select/Clear all" links --- .../en/modules/cataloguing/z3950_auth_search.tt | 24 ++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt index bb21b5b..db64930 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/z3950_auth_search.tt @@ -73,6 +73,22 @@ $(document).ready(function(){ $("#marcPreviewLabel").html(""); $("#marcPreview .modal-body").html("
\"\" "+_("Loading")+"
"); }); + $( ".submit" ).on( "click", function() { + $( "body" ).css( "cursor", "wait" ); + }); + $( ".import_auth_record" ).on( "click", function(e) { + e.preventDefault(); + var data_breedingid = $( this ).data( "breedingid" ); + var data_headingcode = $( this ).data( "heading_code" ); + var data_authid = $( this ).data( "authid" ); + Import(data_breedingid, data_headingcode, data_authid ); + return false; + }); + $( ".close_menu" ).on( "click", function() { + e.preventDefault(); + closemenu(); + return false; + }); }); [% IF ( total_pages ) %] @@ -144,7 +160,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color :
-

Search targets Select allClear all

+

Search targets Select all | Clear all

[% FOREACH serverloo IN serverloop %]

@@ -158,7 +174,7 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : [% END %]

-
Cancel
+
Cancel
[% ELSE %]

Results for Authority Records

@@ -174,11 +190,11 @@ tr.selected { background-color : #FFFFCC; } tr.selected td { background-color : [% FOREACH breeding_loo IN breeding_loop %] [% IF ( breeding_loo.breedingid ) %] - [% breeding_loo.server %]
Preview MARC Import X
+ [% breeding_loo.server %]
Preview MARC Import X
[% breeding_loo.heading %] [% breeding_loo.heading_code %] MARC - Import + Import [% END %] [% END %] -- 1.7.10.4