Problem/Motivation
In 9764cd5 a nice feature was added: action buttons are disabled when no selection is made. However, using form alteration I'm adding an "Add new record" button inside the VBO buttons area. The reason is to keep the visual consistency with the standard VBo buttons. After 9764cd5 alsoo this custom added button is disabled/enabled even, based on its business logic, he should not be influenced by the rows selection. You can add a new record even no row is selected

Proposed resolution
Allow exceptions when toggling buttons. If button has the class vbo-avoid-toggle, then ignore that button.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2860320-2.patch | 651 bytes | claudiu.cristea |
Comments
Comment #2
claudiu.cristeaPatch.
Comment #3
joelpittetThanks, I think this is a reasonable option. Are you ok with with
s/avoid/prevent/?Comment #4
claudiu.cristeaSure. Will you change that on commit, or you need a new patch?
Comment #5
joelpittetCommit just need to get in front of a computer and give people chance to decent
Comment #7
joelpittetPushed to -dev