Browse Source

Fixing branch select onChange() function, hopefully fixes Bug 1957, Holiday Calendar broken in Internet Explorer

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
3.0.x
Owen Leonard 15 years ago
committed by Joshua Ferraro
parent
commit
64f93777a9
  1. 7
      koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl
  2. 3
      tools/holidays.pl

7
koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl

@ -88,7 +88,7 @@
}
function changeBranch () {
var branch = document.getElementById('branch').options[document.getElementById('branch').selectedIndex].value;
var branch = $("#branch option:selected").val();
location.href='/cgi-bin/koha/tools/holidays.pl?branch=' + branch;
}
@ -108,6 +108,11 @@
function Help() {
newin=window.open("/cgi-bin/koha/help.pl","Koha Help",'width=600,height=600,toolbar=false,scrollbars=yes');
}
$(document).ready(function() {
$("#branch").change(function(){
changeBranch();
});
});
//]]>
</script>

3
tools/holidays.pl

@ -60,8 +60,7 @@ my $branchesList = CGI::scrolling_list(-name => 'branch',
-size => 1,
-default => [$branch],
-multiple => 0,
-id => "branch",
-onChange => "changeBranch()");
-id => "branch");
$branches->finish;

Loading…
Cancel
Save