From e88babf235f83ecc3ee345b2f1f1365fb621fafe Mon Sep 17 00:00:00 2001 From: Espen Antonsen Date: Fri, 15 Oct 2010 16:58:42 +0200 Subject: [PATCH] changeSameValue option --- ui/jquery.ui.autocomplete.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index e992aadc355..2019c590256 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -19,6 +19,7 @@ $.widget( "ui.autocomplete", { appendTo: "body", delay: 300, minLength: 1, + changeSameValue: false, position: { my: "left top", at: "left bottom", @@ -300,7 +301,7 @@ $.widget( "ui.autocomplete", { }, _change: function( event ) { - if ( this.previous !== this.element.val() ) { + if ( this.previous !== this.element.val() || this.options.changeSameValue ) { this._trigger( "change", event, { item: this.selectedItem } ); } },