website: defocus input (hide cursor) during submission

This commit is contained in:
Jack Pearkes 2015-03-17 12:55:24 -07:00
parent 89fd152077
commit 9af36ce265
1 changed files with 10 additions and 0 deletions

View File

@ -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.$();