[form] Replace enablePreviewDisabledTemp() with withPreviewFieldsEnab… · unpoly/unpoly@54c3923 · GitHub
Skip to content

Commit 54c3923

Browse files
committed
[form] Replace enablePreviewDisabledTemp() with withPreviewFieldsEnabled()
The helper now takes a callback and re-disables the fields in its own finally block, so up.Params.fromForm() reads as one call.
1 parent 13ae436 commit 54c3923

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

‎src/unpoly/classes/params.js‎

Lines changed: 2 additions & 6 deletions

‎src/unpoly/form.js‎

Lines changed: 11 additions & 5 deletions

0 commit comments

Comments
 (0)