mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 04:08:34 +03:00
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;
|