]> git.evergreen-ils.org Git - evergreen/masslnc.git/commit
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)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 19 Aug 2015 17:39:19 +0000 (13:39 -0400)
commit43309a9d305dd1251d3feedf860aa15bd98a16be
treec0d1bf4c358d64dd76f442dcd2bd7b3b16711761
parent1e5df24d5a4a9b0caa10f9df554ef57757376573
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>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/templates/staff/share/t_autogrid.tt2
Open-ILS/web/js/ui/default/staff/services/grid.js