]> source.dussan.org Git - jquery-ui.git/commitdiff
Fixed visual test for Autocomplete to include select event. Test for #5405 Autocomple...
authorjzaefferer <joern.zaefferer@gmail.com>
Sat, 15 May 2010 14:09:12 +0000 (16:09 +0200)
committerjzaefferer <joern.zaefferer@gmail.com>
Sat, 15 May 2010 14:09:12 +0000 (16:09 +0200)
tests/visual/autocomplete/autocomplete.html

index c39d032ff438dae0897065d36219193ed1b4aad8..d30b2078f96cf63126ea700cb5435df909656239 100644 (file)
                                close: function() {
                                        log("Hiding suggestions");
                                },
+                               select: function(event, ui) {
+                                       log("Selected: " + ui.item.value);
+                               },
                                change: function(event, ui) {
-                                       log(ui.item ? ("Selected: " + ui.item.value) : "Nothing selected, input was " + this.value);
+                                       log(ui.item ? ("Changed to: " + ui.item.value) : "Nothing selected, input was " + this.value);
                                }
                        });
                }