From b3c782faadcbd47a723b5cd0b08559e5964f37cf Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Wed, 12 Feb 2014 00:26:16 +0100 Subject: Fixed TAutoComplete --- .../Web/Javascripts/source/prado/activecontrols/autocomplete.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'framework/Web/Javascripts/source') diff --git a/framework/Web/Javascripts/source/prado/activecontrols/autocomplete.js b/framework/Web/Javascripts/source/prado/activecontrols/autocomplete.js index 180ceecf..da5f4b56 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/autocomplete.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/autocomplete.js @@ -3,8 +3,7 @@ jQuery.noConflict(); /** * TAutoComplete control. */ -Prado.WebUI.TAutoComplete = Class.create(Autocompleter.Base, Prado.WebUI.TActiveTextBox.prototype); -Prado.WebUI.TAutoComplete = Class.create(Prado.WebUI.TAutoComplete, +Prado.WebUI.TAutoComplete = jQuery.klass(Autocompleter.Base, Prado.WebUI.TActiveTextBox.prototype, { initialize : function(options) { @@ -23,13 +22,13 @@ Prado.WebUI.TAutoComplete = Class.create(Prado.WebUI.TAutoComplete, Prado.Registry[options.ID] = this; }, - doCallback : function(event, options) + doCallback : function(options, event) { if(!this.active) { var request = new Prado.CallbackRequest(this.options.EventTarget, options); request.dispatch(); - Event.stop(event); + event.preventDefault(); } }, @@ -40,7 +39,7 @@ Prado.WebUI.TAutoComplete = Class.create(Prado.WebUI.TAutoComplete, this.index = element.autocompleteIndex; this.selectEntry(); this.hide(); - Event.fire(this.element, "change"); + jQuery(this.element).trigger('change'); }, getUpdatedChoices : function() -- cgit v1.2.3