From ac2b8bfa38d2a79710e8cfa1b8b9a2962b84c60e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 5 Oct 2010 16:18:05 -0400 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 --- .../prog/en/includes/doc-head-close.inc | 2 +- .../intranet-tmpl/prog/en/js/pages/batchMod.js | 139 ++++++++++++++++++++ .../prog/en/modules/tools/batchMod-del.tmpl | 50 ++++---- .../prog/en/modules/tools/batchMod-edit.tmpl | 54 ++++---- tools/batchMod.pl | 13 ++- 5 files changed, 201 insertions(+), 57 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 1970440..bbbd648 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 0000000..3b9b7ec --- /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