fix 789
This commit is contained in:
parent
8293016348
commit
161759b99a
1 changed files with 8 additions and 1 deletions
|
|
@ -23,7 +23,9 @@ var View = {
|
|||
/* "Toggling" the search input */
|
||||
$(this.search.selector)
|
||||
.blur(this.search.blur)
|
||||
.focus(this.search.focus);
|
||||
.focus(this.search.focus)
|
||||
/* Submit the form when the user hits enter */
|
||||
.keypress(this.search.keyPress);
|
||||
|
||||
/* Getting started animation */
|
||||
$(this.gettingStarted.selector)
|
||||
|
|
@ -118,6 +120,11 @@ var View = {
|
|||
focus: function() {
|
||||
$(this).addClass("active");
|
||||
},
|
||||
keyPress: function(evt) {
|
||||
if(evt.keyCode === 13) {
|
||||
$(this).parent().submit();
|
||||
}
|
||||
},
|
||||
selector: "#q"
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue