summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-09-13 15:36:52 +0000
committerctrlaltca@gmail.com <>2011-09-13 15:36:52 +0000
commit026421ecddb050a7156b228c329e13de5f0f160d (patch)
treebd9bffbfce9bfc15790498939fab973f8d61402a /framework
parent400b9a94c3d846f868c0f19048df43949f29563f (diff)
fix for a small regression introduced in r2888, noticed in #181
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Javascripts/source/prado/activecontrols/inlineeditor.js10
1 files changed, 6 insertions, 4 deletions
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);
+ }
},
/**