From 860635fd177382be52e981c277b2c7ae33ff7d00 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 22 Jul 2010 14:55:41 -0400 Subject: 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. --- demos/autocomplete/multiple-remote.html | 7 ------- demos/autocomplete/multiple.html | 7 ------- 2 files changed, 14 deletions(-) (limited to 'demos') 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; } }); -- cgit v1.2.3