From e51e3facc51c29b044e69d8fe1b26c931a691359 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 22 Jun 2012 14:12:49 -0400 Subject: [PATCH] Bug 8283 - Replace usage of YUI Cookie utility with jQuery Cookie plugin Content-Type: text/plain; charset="utf-8" Switching from YUI Cookie utility to jQuery Cookie plugin. The jQuery Cookie plugin is already used elsewhere in Koha, so no new dependencies are added. The YUI Cookie files are removed. To test, go to batch item deletion and/or batch item modification and submit a set of barcodes. On the confirmation screen select or deselect columns to show. Start over and submit your barcodes again. The confirmation screen should remember which columns you previously selected. --- .../intranet-tmpl/prog/en/js/pages/batchMod.js | 35 +- .../prog/en/lib/yui/cookie/cookie-debug.js | 482 -------------------- .../prog/en/lib/yui/cookie/cookie-min.js | 7 - .../intranet-tmpl/prog/en/lib/yui/cookie/cookie.js | 482 -------------------- .../prog/en/modules/tools/batchMod-del.tt | 2 - .../prog/en/modules/tools/batchMod-edit.tt | 2 - 6 files changed, 12 insertions(+), 998 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie-debug.js delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie-min.js delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/lib/yui/cookie/cookie.js diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js b/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js index b01552c..ed0d92f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js @@ -5,13 +5,12 @@ function hideColumns(){ - valCookie = YAHOO.util.Cookie.get("showColumns", function(stringValue){ - return stringValue.split("/"); - }); + valCookie = $.cookie("showColumns"); if(valCookie){ + valCookie = valCookie.split("/"); $("#showall").removeAttr("checked").parent().removeClass("selected"); for( i=0; i