11 | | 1. keep the Save button always enabled |
12 | | 2. if parent <form> element is detected, submit the form |
13 | | 3. always fire the save event when Save button is used: (i) to make it possible to save data through ajax and (ii) to prevent from submitting the form if the developer doesn't want it. |
| 11 | 1. Keep the Save button always enabled. |
| 12 | 2. If parent <form> element is detected, submit the form. |
| 13 | 3. Always fire the save event when Save button is used: (i) to make it possible to save data through ajax and (ii) to prevent from submitting the form if the developer doesn't want it. |