Bug 23944: (follow-up) Update circulation to use new library
[srvgit] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / circulation.tt
index 6c5f9eb..d835092 100644 (file)
         columns_settings_borrowers_table = [% ColumnsSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %]
 
         [% IF borrowernumber and patron %]
-            if($.cookie("holdfor") != [% patron.borrowernumber | html %]){
-                $.removeCookie("holdfor", { path: '/' });
+            if( Cookies.get("holdfor") != [% patron.borrowernumber | html %]){
+                Cookies.remove("holdfor", { path: '/' });
             }
         [% ELSE %]
-            $.removeCookie("holdfor", { path: '/' });
+            Cookies.remove("holdfor", { path: '/' });
         [% END %]
 
         [% UNLESS ( patron.borrowernumber ) %][% UNLESS ( borrowers ) %]window.onload=function(){ $('#findborrower').focus(); };[% END %][% END %]