From cb969684da285622de645b008dc3aa7c7a207e7c Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 9 Dec 2010 17:57:49 +0000 Subject: [PATCH] Fix for Bug 5285, Show/hide columns in the output of items in batch operations Also adds title/author information to output of batch deletions Signed-off-by: Colin Campbell Signed-off-by: Chris Cormack --- .../prog/en/includes/doc-head-close.inc | 2 +- .../prog/en/js/pages/batchMod.js | 139 ++++++++++++++++++ .../prog/en/modules/tools/batchMod-del.tmpl | 52 +++---- .../prog/en/modules/tools/batchMod-edit.tmpl | 54 ++++--- tools/batchMod.pl | 13 +- 5 files changed, 202 insertions(+), 58 deletions(-) create mode 100644 koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc index 1970440315..bbbd6483eb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc @@ -62,7 +62,7 @@ - + diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js b/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js new file mode 100644 index 0000000000..e6e2dc683a --- /dev/null +++ b/koha-tmpl/intranet-tmpl/prog/en/js/pages/batchMod.js @@ -0,0 +1,139 @@ +// Set expiration date for cookies + var date = new Date(); + date.setTime(date.getTime()+(365*24*60*60*1000)); + var expiration = date.toGMTString(); + + +function hideColumns(){ + valCookie = YAHOO.util.Cookie.get("showColumns", function(stringValue){ + return stringValue.split("/"); + }); + if(valCookie){ + $("#showall").attr("checked","").parent().removeClass("selected"); + for( i=0; i