From 026421ecddb050a7156b228c329e13de5f0f160d Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Tue, 13 Sep 2011 15:36:52 +0000 Subject: fix for a small regression introduced in r2888, noticed in #181 --- .../Javascripts/source/prado/activecontrols/inlineeditor.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'framework/Web/Javascripts/source') diff --git a/framework/Web/Javascripts/source/prado/activecontrols/inlineeditor.js b/framework/Web/Javascripts/source/prado/activecontrols/inlineeditor.js index 6a6892cf..74d45515 100644 --- a/framework/Web/Javascripts/source/prado/activecontrols/inlineeditor.js +++ b/framework/Web/Javascripts/source/prado/activecontrols/inlineeditor.js @@ -28,11 +28,13 @@ Prado.WebUI.TInPlaceTextBox = Base.extend( initializeListeners : function() { this.onclickListener = this.enterEditMode.bindAsEventListener(this); - Event.observe(this.element, 'click', this.onclickListener); - if (this.options.ExternalControl) - // Issue 181 - $(this.options.ExternalControl).stopObserving('click', this.onclickListener); + Event.observe(this.element, 'click', this.onclickListener); + if (this.options.ExternalControl) + { + // Issue 181 + $(this.options.ExternalControl).stopObserving('click', this.onclickListener); Event.observe($(this.options.ExternalControl), 'click', this.onclickListener); + } }, /** -- cgit v1.2.3