Bug 15321: No need to add the change trigger conditionally

It will be applied if the button exists.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2015-12-09 09:04:35 +00:00 committed by Kyle M Hall
parent 404a11a9a5
commit c678525b47

View file

@ -156,7 +156,7 @@ $(document).ready(function(){
$(this).select();
});
[% END %]
[% IF ( saved1 || showsql || execute || editsql || save_successful ) %]
$(".confirmdelete").click(function(){
$(this).parents('tr').attr("class","warn");
if(confirm(_("Are you sure you want to delete this saved report?"))){
@ -166,7 +166,6 @@ $(document).ready(function(){
return false;
}
});
[% END %]
[% IF (create || editsql || save) %]
$("#select_group").change(function() {