teach egGrid action menus how to conditionally disable items
authorGalen Charlton <gmc@esilibrary.com>
Thu, 23 Jul 2015 17:49:36 +0000 (17:49 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 23 Jul 2015 17:49:36 +0000 (17:49 +0000)
commitf51bffb251d6c345e5f7617e310909138c63ad88
tree13c6c8343cc7ef1a760e82668a654dbebdb142df
parent0118cdd399e26eeb50df92ca2f9894de1ef15526
teach egGrid action menus how to conditionally disable items

It is now possible to pass a function to specify if an action
menu item should be disabled:

  <eg-grid-action handler="do_stuff" disabled="cant_do_stuff"
    label="[% l('Do Stuff') %]"></eg-grid-action>

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/templates/staff/share/t_autogrid.tt2
Open-ILS/web/js/ui/default/staff/services/grid.js