more menu examples user/berick/eg15-angular-global-flag
authorBill Erickson <berickxx@gmail.com>
Fri, 15 May 2015 16:56:04 +0000 (12:56 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 15 May 2015 16:56:04 +0000 (12:56 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/templates/staff/admin/config/t_global_flag.tt2
Open-ILS/web/js/ui/default/staff/admin/config/app.js

index 1dc3914..265a47a 100644 (file)
@@ -7,6 +7,6 @@
   persist-key="admin.config.global_flag">
 
   <!-- actions drop-down -->
-  <eg-grid-action label="[% l('Test') %]" handler=""></eg-grid-action>
+  <eg-grid-action label="[% l('Test') %]" handler="an_action_handler"></eg-grid-action>
 
 </eg-grid>
index 2a9855e..c069b47 100644 (file)
@@ -30,7 +30,14 @@ function($scope,  $location,  $q,  egCore) {
         // tell the grid which config.global_flag objects to retrieve
         setQuery : function() {
             return {name : {'!=' : null}};
+        },
+
+        activateItem : function() {
+            alert('dbl click');
         }
+
     };
 
+    $scope.an_action_handler = function() { alert('HELLO') }
+
 }])