From e4fc74acdd200dc8be8d2ccbad682fa352997cd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Andr=C3=A9=20Santoni?= Date: Mon, 21 Dec 2009 09:34:52 +0100 Subject: [PATCH] [MT2346] Hide basket actions if no basket --- .../prog/en/includes/acquisitions-toolbar.inc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc index 13a8f6ee1e..99c8c4b743 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc @@ -14,6 +14,11 @@ new YAHOO.widget.Button("newperiod"); new YAHOO.widget.Button("newbudget"); new YAHOO.widget.Button("newsupplier"); + new YAHOO.widget.Button("newbasket"); + new YAHOO.widget.Button("editsupplier"); + new YAHOO.widget.Button("receive"); + new YAHOO.widget.Button("newcontract"); + new YAHOO.widget.Button("editcontracts"); var manageorders = [ { text: _("New basket"), url: "/cgi-bin/koha/acqui/basketheader.pl?booksellerid=&op=add_form"}, @@ -27,12 +32,9 @@ ] - new YAHOO.widget.Button("newbasket"); - new YAHOO.widget.Button("editsupplier"); - new YAHOO.widget.Button("receive"); - new YAHOO.widget.Button("newcontract"); - new YAHOO.widget.Button("editcontracts"); - new YAHOO.widget.Button({type: "menu", label: _("Manage orders"), name: "manageorders", menu: manageorders, container: "toolbar-list"}); + + new YAHOO.widget.Button({type: "menu", label: _("Manage orders"), name: "manageorders", menu: manageorders, container: "toolbar-list"}); + } @@ -43,6 +45,9 @@
  • &op=enter">Edit
  • ">New Contract
  • ">Contracts
  • + +
  • ">New Basket
  • +
  • New Vendor