}
function forgetPatron(){
- $.cookie("holdfor",null, { path: "/", expires: 0 });
+ $.removeCookie("holdfor", { path: '/' });
$(".holdforlink").remove();
$("#placeholdc").html("<a class=\"btn btn-mini placehold\" href=\"#\"><i class=\"icon-hold\"></i> "+_("Place hold")+"</a>");
}
columns_settings = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'issues-table', 'json' ) %]
-[% IF ( borrowernumber ) %]if($.cookie("holdfor") != [% borrowernumber %]){ $.cookie("holdfor",null, { path: "/", expires: 0 }); }[% ELSE %]$.cookie("holdfor",null, { path: "/", expires: 0 });[% END %]
+[% IF ( borrowernumber ) %]
+ if($.cookie("holdfor") != [% borrowernumber %]){
+ $.removeCookie("holdfor", { path: '/' });
+ }
+[% ELSE %]
+ $.removeCookie("holdfor", { path: '/' });
+[% END %]
+
[% UNLESS ( borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]
// On-site checkout