$template->param(
course => $course,
course_reserves => $course_reserves,
count => scalar @$course_reserves,
);
output_html_with_http_headers $cgi, $cookie, $template->output;
});
$("#delete_course").click(function(){
return confirm( _("Are you sure you want to delete this course?") );
[% IF count == 1 %]
return confirmDelete(_("Are you sure you want to delete this course? There is [% count %] attached item.") );
[% ELSIF count != 1 && count > 0 %]
return confirmDelete(_("Are you sure you want to delete this course? There are [% count %] attached items.") );
[% ELSE %]
return confirmDelete(_("Are you sure you want to delete this course?"));
[% END %]
$(".disabled").tooltip().on("click", function(e){
e.preventDefault();
-