mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
e7f5dd3204
closes #2419 - Added blur-text-field component, which fires actions on focusOut - Added utils/date-formatting for moment & date functionality consolidation - Added functionality to PostsPostController - Added fixtures: posts/3 & posts/4, posts/slug/test%20title/ - Added Post model saving - Set posts.post as controller for EditorRoute - Added PostSettingsMenuView and template - Added "showErrors" convenience method to notifications
14 lines
324 B
JavaScript
14 lines
324 B
JavaScript
var BlurTextField = Ember.TextField.extend({
|
|
selectOnClick: false,
|
|
click: function (event) {
|
|
if (this.get('selectOnClick')) {
|
|
event.currentTarget.select();
|
|
}
|
|
},
|
|
focusOut: function () {
|
|
this.sendAction('action', this.get('value'));
|
|
}
|
|
});
|
|
|
|
export default BlurTextField;
|