From 0e42e52b0159b1fdc36043d43619b707176d596a Mon Sep 17 00:00:00 2001 From: Paul Poulain Date: Tue, 15 Sep 2009 11:40:56 +0200 Subject: [PATCH] small 1st changes in basketgrouping (#3622) a lot more to come. --- koha-tmpl/intranet-tmpl/prog/en/js/acq.js | 29 +--------- .../prog/en/modules/acqui/basketgroup.tmpl | 57 ++++++++----------- 2 files changed, 25 insertions(+), 61 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js index 84c9f86d9b..dce702be91 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/acq.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/acq.js @@ -466,7 +466,7 @@ function closebasketgroup(bgid) { cantprint.id = 'cantprint-' + bgid; var unclosegroup = document.createElement('a'); unclosegroup.href='javascript:unclosegroup('+bgid+');'; - unclosegroup.innerHTML=_("unclose basketgroup"); + unclosegroup.innerHTML=_("reopen basketgroup"); unclosegroup.id = 'unclose-' + bgid; div.appendChild(cantprint); @@ -560,33 +560,6 @@ function showhideclosegroups(show){ } } -function moveallungroupedto(event, newbgname){ - if (!enterpressed(event) && event != "button"){ - return false; - } - var Dom = YAHOO.util.Dom; - var ungrouped = Dom.getElementsByClassName("ungrouped", "li"); - var unclosed = Dom.getElementsByClassName("workarea", "div"); - var reg = new RegExp("[-]+", "g"); - - for (var i = 0; i < unclosed.length; ++i){ - if(unclosed[i].getElementsByTagName('h3')[0].innerHTML == newbgname){ - var ul = unclosed[i].getElementsByTagName('ul')[0]; - var id = unclosed[i].getElementsByTagName('input')[unclosed[i].getElementsByTagName('input').length-2].name.split(reg)[1]; - for (var j = 0; j< ungrouped.length; ++j){ - ungrouped[j].className = "grouped"; - ungrouped[j].getElementsByTagName('input')[0].value = id; - ul.appendChild(ungrouped[j]); -//FIXME: these should be using getElementById, but i don't know how. -//this might not be explicit enough, and it's quite complex and hard to read. (above is the basketgroupid of the basket, -// below is the changed status - ungrouped[j].getElementsByTagName('input')[1].value = 1; - - } - } - } -} - function renameinit(bgid){ var ul = document.getElementById('bg-'+bgid); var div = ul.parentNode; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tmpl index d3379205c7..6e376d6c22 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tmpl @@ -149,7 +149,7 @@ fieldset.various li {

Basket grouping for Vendor ">

-
+
  • @@ -170,39 +170,30 @@ fieldset.various li {
  • -
  • - - - - Ok - -
-
-
" method="post" name="basketgroups" id="basketgroups">
-

Ungrouped Baskets

- +

Ungrouped Baskets

+
@@ -212,8 +203,8 @@ fieldset.various li {