[open-ils-commits] [GIT] Evergreen ILS branch master updated. 33a071a1adada515f6f89ab8a59c4574e5462ff3
Evergreen Git
git at git.evergreen-ils.org
Fri Mar 3 09:40:30 EST 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, master has been updated
via 33a071a1adada515f6f89ab8a59c4574e5462ff3 (commit)
from befdbad1cb34391e0e53dfe86dcd39395656e5ce (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 33a071a1adada515f6f89ab8a59c4574e5462ff3
Author: Bill Erickson <berickxx at gmail.com>
Date: Fri Sep 23 12:05:21 2016 -0400
LP#1539089 Webstaff grid actions disabled until selected.
The grid "Actions" menu is disabled until one or more rows are selected.
Signed-off-by: Bill Erickson <berickxx at gmail.com>
Signed-off-by: Jeanette Lundgren <jlundgren at cwmars.org>
Signed-off-by: Kathy Lussier <klussier at masslnc.org>
diff --git a/Open-ILS/src/templates/staff/share/t_autogrid.tt2 b/Open-ILS/src/templates/staff/share/t_autogrid.tt2
index 82fa3b2..acf3b5c 100644
--- a/Open-ILS/src/templates/staff/share/t_autogrid.tt2
+++ b/Open-ILS/src/templates/staff/share/t_autogrid.tt2
@@ -86,7 +86,8 @@
<!-- actions drop-down menu -->
<div class="btn-group" ng-show="showActions" ng-if="actionGroups.length > 1 || actionGroups[0].actions.length" uib-dropdown>
- <button type="button" class="btn btn-default" uib-dropdown-toggle>
+ <button type="button" class="btn btn-default" uib-dropdown-toggle
+ ng-disabled="!hasSelected()">
[% l('Actions') %] <span class="caret"></span>
</button>
<ul class="pull-right grid-action-dropdown scrollable-menu" uib-dropdown-menu>
diff --git a/Open-ILS/web/js/ui/default/staff/services/grid.js b/Open-ILS/web/js/ui/default/staff/services/grid.js
index 6c3e075..8828456 100644
--- a/Open-ILS/web/js/ui/default/staff/services/grid.js
+++ b/Open-ILS/web/js/ui/default/staff/services/grid.js
@@ -127,6 +127,10 @@ angular.module('egGridMod',
$scope.actionGroups = [{actions:[]}]; // Grouped actions for selected items
$scope.menuItems = []; // global actions
+ // returns true if any rows are selected.
+ $scope.hasSelected = function() {
+ return grid.getSelectedItems().length > 0 };
+
var features = ($scope.features) ?
$scope.features.split(',') : [];
delete $scope.features;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/templates/staff/share/t_autogrid.tt2 | 3 ++-
Open-ILS/web/js/ui/default/staff/services/grid.js | 4 ++++
2 files changed, 6 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list