See attached patch. This will prevent a modal from closing when previewing a node (via node_add form).
| Comment | File | Size | Author |
|---|---|---|---|
| automodal_nodePreview.patch | 467 bytes | mstef |
See attached patch. This will prevent a modal from closing when previewing a node (via node_add form).
| Comment | File | Size | Author |
|---|---|---|---|
| automodal_nodePreview.patch | 467 bytes | mstef |
Comments
Comment #1
mstef commentedComment #2
hefox commentedShould likely be testing if button submitted was preview button instead of not save/delete (seen often people customizing labels of submit buttons.. or adding a new one). The information for submitted button is in form state to my memory.
Also, breaks translation since 'Save' and not t('Save')
Comment #3
dsnopekUpdated patch per @hefox's review and committed in 917b71f. Thanks, @mstef!