0
Fork 0
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:
Kevin Ansfield 2015-09-27 14:03:47 +01:00
commit 587c08979a
2 changed files with 5 additions and 1 deletions

View file

@ -201,6 +201,10 @@ export default Ember.Controller.extend(SettingsMenuMixin, {
},
actions: {
discardEnter: function () {
return false;
},
togglePage: function () {
var self = this;

View file

@ -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"}}