Submit form builder dialog form on enter in certain input fields
authorMatthias Schmidt <gravatronics@live.com>
Sun, 30 Jun 2019 15:15:51 +0000 (17:15 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 30 Jun 2019 15:15:51 +0000 (17:15 +0200)
See #2509

com.woltlab.wcf/templates/__numericFormField.tpl
com.woltlab.wcf/templates/__textFormField.tpl
com.woltlab.wcf/templates/__usernameFormField.tpl
wcfsetup/install/files/acp/templates/__numericFormField.tpl
wcfsetup/install/files/acp/templates/__textFormField.tpl
wcfsetup/install/files/acp/templates/__usernameFormField.tpl

index 685f7fdda6a10b4f03350a714c96bd02c142113e..0cf95031b3dd6117c6d1ee1e53156d3bcbc9dff9 100644 (file)
@@ -16,6 +16,7 @@
        *}{if $field->getMinimum() !== null} min="{$field->getMinimum()}"{/if}{*
        *}{if $field->getMaximum() !== null} max="{$field->getMaximum()}"{/if}{*
        *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
+       *}{if $field->getDocument()->isAjax()} data-dialog-submit-on-enter="true"{/if}{*
 *}>
 
 {if $field->getSuffix() !== null}
index 06691313106ca21e8f82e9b1459825c8c813818a..ec09c659d105ba2f4444c7e3201fb78002282bcd 100644 (file)
@@ -11,6 +11,7 @@
        *}{if $field->getMinimumLength() !== null} minlength="{$field->getMinimumLength()}"{/if}{*
        *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{*
        *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
+       *}{if $field->getDocument()->isAjax()} data-dialog-submit-on-enter="true"{/if}{*
 *}>
 
 {if $field->isI18n()}
index 4e502abff74300bf7b5cc6ba23ff0822c4d12d1b..a857c80246713f07426eb2950f7810b2554381c1 100644 (file)
@@ -11,6 +11,7 @@
        *}{if $field->getMinimumLength() !== null} minlength="{$field->getMinimumLength()}"{/if}{*
        *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{*
        *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
+       *}{if $field->getDocument()->isAjax()} data-dialog-submit-on-enter="true"{/if}{*
 *}>
 
 {include file='__formFieldFooter'}
index 685f7fdda6a10b4f03350a714c96bd02c142113e..0cf95031b3dd6117c6d1ee1e53156d3bcbc9dff9 100644 (file)
@@ -16,6 +16,7 @@
        *}{if $field->getMinimum() !== null} min="{$field->getMinimum()}"{/if}{*
        *}{if $field->getMaximum() !== null} max="{$field->getMaximum()}"{/if}{*
        *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
+       *}{if $field->getDocument()->isAjax()} data-dialog-submit-on-enter="true"{/if}{*
 *}>
 
 {if $field->getSuffix() !== null}
index 06691313106ca21e8f82e9b1459825c8c813818a..ec09c659d105ba2f4444c7e3201fb78002282bcd 100644 (file)
@@ -11,6 +11,7 @@
        *}{if $field->getMinimumLength() !== null} minlength="{$field->getMinimumLength()}"{/if}{*
        *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{*
        *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
+       *}{if $field->getDocument()->isAjax()} data-dialog-submit-on-enter="true"{/if}{*
 *}>
 
 {if $field->isI18n()}
index 4e502abff74300bf7b5cc6ba23ff0822c4d12d1b..a857c80246713f07426eb2950f7810b2554381c1 100644 (file)
@@ -11,6 +11,7 @@
        *}{if $field->getMinimumLength() !== null} minlength="{$field->getMinimumLength()}"{/if}{*
        *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{*
        *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
+       *}{if $field->getDocument()->isAjax()} data-dialog-submit-on-enter="true"{/if}{*
 *}>
 
 {include file='__formFieldFooter'}