Skip to content
Permalink
Browse files

Autocomplete: Removed selection handling in IE. No longer needed now …

…that autocomplete ensures that the cursor is placed at the end of the field on select.
  • Loading branch information
scottgonzalez committed Jul 22, 2010
1 parent fe13fba commit 860635fd177382be52e981c277b2c7ae33ff7d00
Showing with 0 additions and 14 deletions.
  1. +0 −7 demos/autocomplete/multiple-remote.html
  2. +0 −7 demos/autocomplete/multiple.html
@@ -48,13 +48,6 @@
// add placeholder to get the comma-and-space at the end
terms.push("");
this.value = terms.join(", ");
if ( document.selection ) {
this.focus();
var range = document.selection.createRange();
range.moveStart( 'character', this.value.length );
range.moveEnd( 'character', 0 );
range.select();
}
return false;
}
});
@@ -39,13 +39,6 @@
// add placeholder to get the comma-and-space at the end
terms.push("");
this.value = terms.join(", ");
if ( document.selection ) {
this.focus();
var range = document.selection.createRange();
range.moveStart( 'character', this.value.length );
range.moveEnd( 'character', 0 );
range.select();
}
return false;
}
});

0 comments on commit 860635f

Please sign in to comment.
You can’t perform that action at this time.