diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js b/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js index 4816036d3e..b766a6f720 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js @@ -85,7 +85,7 @@ function showAllColumns() { }); $("#selections span").addClass("selected"); $("#itemst td:nth-child(3),#itemst tr th:nth-child(3)").nextAll().show(); - $.removeCookie("showColumns", { path: '/' }); + Cookies.remove("showColumns", { path: '/' }); $("#hideall").prop("checked", false).parent().removeClass("selected"); } diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js b/koha-tmpl/intranet-tmpl/prog/js/pages/results.js index c1bd815cea..f3dbc195e0 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/results.js @@ -1,4 +1,4 @@ -/* global KOHA biblionumber new_results_browser addMultiple vShelfAdd openWindow search_result SEARCH_RESULTS PREF_LocalCoverImages PREF_IntranetCoce PREF_CoceProviders CoceHost CoceProviders addRecord delSingleRecord PREF_BrowseResultSelection resetSearchContext addBibToContext delBibToContext getContextBiblioNumbers holdfor_cardnumber holdforclub strQuery PREF_NotHighlightedWords __ */ +/* global KOHA biblionumber new_results_browser addMultiple vShelfAdd openWindow search_result SEARCH_RESULTS PREF_LocalCoverImages PREF_IntranetCoce PREF_CoceProviders CoceHost CoceProviders addRecord delSingleRecord PREF_BrowseResultSelection resetSearchContext addBibToContext delBibToContext getContextBiblioNumbers holdfor_cardnumber holdforclub strQuery PREF_NotHighlightedWords __ Cookies */ function verify_images() { /* Loop over each container in the template which contains covers */ @@ -348,8 +348,8 @@ function placeHold () { } function forgetPatronAndClub(){ - $.removeCookie("holdfor", { path: '/' }); - $.removeCookie("holdforclub", { path: '/' }); + Cookies.remove("holdfor", { path: '/' }); + Cookies.remove("holdforclub", { path: '/' }); $(".holdforlink").remove(); $("#placeholdc").html(" " + __("Place hold") + ""); } diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index c62a037e52..619ecfe474 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -1,4 +1,4 @@ -/* global shortcut delBasket Sticky AUDIO_ALERT_PATH */ +/* global shortcut delBasket Sticky AUDIO_ALERT_PATH Cookies */ /* exported addBibToContext delBibToContext escape_str escape_price openWindow _ removeFocus toUC confirmDelete confirmClone playSound */ if ( KOHA === undefined ) var KOHA = {}; @@ -194,7 +194,7 @@ function checkEnter(e){ //e is event object passed from function invocation } function clearHoldFor(){ - $.removeCookie("holdfor", { path: '/' }); + Cookies.remove("holdfor", { path: '/' }); } function logOut(){