website: defocus input (hide cursor) during submission
This commit is contained in:
parent
89fd152077
commit
9af36ce265
|
@ -107,6 +107,16 @@ Demo.DemoView = Ember.View.extend({
|
|||
}
|
||||
},
|
||||
|
||||
deFocus: function() {
|
||||
var element = this.$().find('input.shell');
|
||||
|
||||
// defocus while loading
|
||||
if (this.get('controller.isLoading')) {
|
||||
element.blur()
|
||||
}
|
||||
|
||||
}.observes('controller.isLoading'),
|
||||
|
||||
submitted: function() {
|
||||
var element = this.$();
|
||||
|
||||
|
|
Loading…
Reference in New Issue