Merge pull request #1717 from vikhyat/fix-auto-close-form-submit
Fix auto close topic modal when pressing enter
This commit is contained in:
commit
28bfb34488
|
@ -1,10 +1,10 @@
|
||||||
<div class="modal-body">
|
<form {{action saveAutoClose on="submit"}}>
|
||||||
<form>
|
<div class="modal-body">
|
||||||
{{auto-close-form autoCloseTime=auto_close_time autoCloseValid=auto_close_valid}}
|
{{auto-close-form autoCloseTime=auto_close_time autoCloseValid=auto_close_valid}}
|
||||||
</form>
|
</div>
|
||||||
</div>
|
<div class="modal-footer">
|
||||||
<div class="modal-footer">
|
<button class='btn btn-primary' type='submit' {{bindAttr disabled="auto_close_invalid"}}>{{i18n topic.auto_close_save}}</button>
|
||||||
<button class='btn btn-primary' {{action saveAutoClose}} {{bindAttr disabled="auto_close_invalid"}}>{{i18n topic.auto_close_save}}</button>
|
<a {{action closeModal}}>{{i18n cancel}}</a>
|
||||||
<a {{action closeModal}}>{{i18n cancel}}</a>
|
<button class='btn pull-right' {{action removeAutoClose}}>{{i18n topic.auto_close_remove}}</button>
|
||||||
<button class='btn pull-right' {{action removeAutoClose}}>{{i18n topic.auto_close_remove}}</button>
|
</div>
|
||||||
</div>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue