From 69d863f739679ebdc391584f0ce436756083e296 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 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. Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain --- .../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 - .../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 b01552ca37..ed0d92fb2b 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