summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-06-21 15:55:31 +0200
committerFabio Bas <ctrlaltca@gmail.com>2016-06-21 15:55:31 +0200
commit1ba4faadf5f09887bd18e56e245b7e2249ace660 (patch)
tree62cc013594fe164b7c5579a2616a69adc4d13f98
parente0e29edf1341747ecb8d60034a88a9dc5a5bf71d (diff)
Fix #604
-rw-r--r--HISTORY1
-rw-r--r--framework/Web/Javascripts/source/prado/controls/controls.js2
2 files changed, 2 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index 19cb40e2..3c4972b4 100644
--- a/HISTORY
+++ b/HISTORY
@@ -4,6 +4,7 @@ BUG: Issue #592 - Fix TActiveMultiView brokwn on 3.3.1 (ctrlaltca)
BUG: Issue #588 - Fix reading values of controls inside TJuiDialog (ctrlaltca)
BUG: Issue #597 - TDatePicker::getDateFromPostData selected month issue (Sachat)
BUG: Issue #599 - Allowing translation message cache to be initialized (emkael)
+BUG: Issue #604 - TActiveImageButton inside TJuiDialog javascript problem (ctrlaltca)
ENH: Issue #591 - Support for hyphenated attributes via <prop:*></prop:*> template syntax (emkael)
ENH: Issue #594 - Added ability to check for subcontrols using isset(), empty() (jojoinside)
ENH: Allow TStyle behaviors (LCSKJ)
diff --git a/framework/Web/Javascripts/source/prado/controls/controls.js b/framework/Web/Javascripts/source/prado/controls/controls.js
index 9eff6a1d..022dddcb 100644
--- a/framework/Web/Javascripts/source/prado/controls/controls.js
+++ b/framework/Web/Javascripts/source/prado/controls/controls.js
@@ -316,7 +316,7 @@ Prado.WebUI.TImageButton = jQuery.klass(Prado.WebUI.PostBackControl,
y = y < 0 ? 0 : y;
var id = this.element.id;
var name = options['EventTarget'];
- var form = this.element.form;
+ var form = this.element.form || jQuery('#PRADO_PAGESTATE').get(0).form;
var input=null;
input = document.createElement("input");