From: Scott González Date: Thu, 22 Jul 2010 18:55:41 +0000 (-0400) Subject: Autocomplete: Removed selection handling in IE. No longer needed now that autocomplet... X-Git-Tag: 1.8.3~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=860635fd177382be52e981c277b2c7ae33ff7d00;p=jquery-ui.git 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. --- diff --git a/demos/autocomplete/multiple-remote.html b/demos/autocomplete/multiple-remote.html index 520505159..0f77e795d 100644 --- a/demos/autocomplete/multiple-remote.html +++ b/demos/autocomplete/multiple-remote.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; } }); diff --git a/demos/autocomplete/multiple.html b/demos/autocomplete/multiple.html index 742c7d857..1f9243bf2 100644 --- a/demos/autocomplete/multiple.html +++ b/demos/autocomplete/multiple.html @@ -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; } });