From: Owen Leonard Date: Fri, 22 Jun 2012 18:12:49 +0000 (-0400) Subject: Bug 8283 - Replace usage of YUI Cookie utility with jQuery Cookie plugin X-Git-Tag: v3.10.01~743 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=69d863f739679ebdc391584f0ce436756083e296;p=srvgit 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 --- 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