See attached patch. This will prevent a modal from closing when previewing a node (via node_add form).

CommentFileSizeAuthor
automodal_nodePreview.patch467 bytesmstef

Comments

mstef’s picture

Status: Active » Needs review
hefox’s picture

Status: Needs review » Needs work

Should 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')

dsnopek’s picture

Issue summary: View changes
Status: Needs work » Fixed

Updated patch per @hefox's review and committed in 917b71f. Thanks, @mstef!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.