mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 09:52:09 +03:00
a47980149f
GH-ISSUE 2373
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;
|