Skip to content

Commit

Permalink
website: defocus input (hide cursor) during submission
Browse files Browse the repository at this point in the history
  • Loading branch information
pearkes committed Mar 17, 2015
1 parent 40be97b commit 26d1b36
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions website/source/assets/javascripts/demo/views/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.$();

Expand Down

0 comments on commit 26d1b36

Please sign in to comment.