From 43c8d504ee78c1c8c3fdb356bb35884cd972e34a Mon Sep 17 00:00:00 2001 From: senator Date: Mon, 20 Sep 2010 05:05:43 +0000 Subject: [PATCH] Backport r17829 from trunk: actions menu to ordinary select in li table git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@17830 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/acq/common/li_table.js | 9 ++++----- Open-ILS/web/templates/default/acq/common/li_table.tt2 | 2 +- Open-ILS/web/templates/default/acq/search/unified.tt2 | 9 +++++++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Open-ILS/web/js/ui/default/acq/common/li_table.js b/Open-ILS/web/js/ui/default/acq/common/li_table.js index 5e7357bc3c..3f58eecaa7 100644 --- a/Open-ILS/web/js/ui/default/acq/common/li_table.js +++ b/Open-ILS/web/js/ui/default/acq/common/li_table.js @@ -75,11 +75,10 @@ function AcqLiTable() { } ); - dojo.connect(acqLitLiActionsSelector, 'onChange', - function() { - self.applySelectedLiAction(this.attr('value')) - acqLitLiActionsSelector.attr('value', '_'); - }); + dojo.byId("acq-lit-li-actions-selector").onchange = function() { + self.applySelectedLiAction(this.options[this.selectedIndex].value); + this.selectedIndex = 0; + }; acqLitCreatePoSubmit.onClick = function() { if (self._confirmPoPrepaySituation()) { diff --git a/Open-ILS/web/templates/default/acq/common/li_table.tt2 b/Open-ILS/web/templates/default/acq/common/li_table.tt2 index 69e91d949b..4ff02e88b3 100644 --- a/Open-ILS/web/templates/default/acq/common/li_table.tt2 +++ b/Open-ILS/web/templates/default/acq/common/li_table.tt2 @@ -13,7 +13,7 @@ - diff --git a/Open-ILS/web/templates/default/acq/search/unified.tt2 b/Open-ILS/web/templates/default/acq/search/unified.tt2 index 1c2fd649fd..1d3f36936e 100644 --- a/Open-ILS/web/templates/default/acq/search/unified.tt2 +++ b/Open-ILS/web/templates/default/acq/search/unified.tt2 @@ -89,6 +89,11 @@