Skip to content

Commit

Permalink
Item11371: closing suggestion list when hitting return in the input f…
Browse files Browse the repository at this point in the history
…ield

git-svn-id: http://svn.foswiki.org/trunk@13463 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
MichaelDaum authored and MichaelDaum committed Dec 19, 2011
1 parent edfeb94 commit e797a19
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
if(event.keyCode == 13) {
var val = self.input.val();
if (val) {
$.log("TEXTBOXLIST: closing suggestion list");
self.input.autocomplete("close");
self.select(val);
event.preventDefault();
return false;
Expand Down

0 comments on commit e797a19

Please sign in to comment.