mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Merge pull request #5871 from cobbspur/preventEnter
Prevent enter button reloading page when focus is on meta-title in PSM
This commit is contained in:
commit
587c08979a
2 changed files with 5 additions and 1 deletions
|
@ -201,6 +201,10 @@ export default Ember.Controller.extend(SettingsMenuMixin, {
|
|||
},
|
||||
|
||||
actions: {
|
||||
discardEnter: function () {
|
||||
return false;
|
||||
},
|
||||
|
||||
togglePage: function () {
|
||||
var self = this;
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
</div>
|
||||
|
||||
<div class="settings-menu-content">
|
||||
<form>
|
||||
<form {{action "discardEnter" on="submit"}}>
|
||||
{{#gh-form-group errors=model.errors property="meta_title"}}
|
||||
<label for="meta-title">Meta Title</label>
|
||||
{{gh-input class="post-setting-meta-title" id="meta-title" value=metaTitleScratch name="post-setting-meta-title" focus-out="setMetaTitle" stopEnterKeyDownPropagation="true"}}
|
||||
|
|
Loading…
Add table
Reference in a new issue