webstaff: 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>
Mon, 17 Aug 2015 22:56:55 +0000 (22:56 +0000)
commit42758c690541977bdfe539f1526a6248276d163f
tree803f6884e19e4b25b67d66b347188b8f759b7cb3
parent82fbbea20a35e57ce7493d85d96db6b3e0be9f5c
webstaff: 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