]> source.dussan.org Git - jquery-ui.git/commitdiff
Autocomplete: Removed selection handling in IE. No longer needed now that autocomplet...
authorScott González <scott.gonzalez@gmail.com>
Thu, 22 Jul 2010 18:55:41 +0000 (14:55 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 22 Jul 2010 18:55:41 +0000 (14:55 -0400)
demos/autocomplete/multiple-remote.html
demos/autocomplete/multiple.html

index 520505159951524887b5ba84274d278619195e41..0f77e795df0cb37d89aba639881626bba8311eff 100644 (file)
                                // 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;
                        }
                });
index 742c7d857b4475e5644cb12bd1ece884d0b85790..1f9243bf28c2e793b564e83fed67444d08aba171 100644 (file)
                                // 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;
                        }
                });