From 1ba4faadf5f09887bd18e56e245b7e2249ace660 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Tue, 21 Jun 2016 15:55:31 +0200 Subject: Fix #604 --- HISTORY | 1 + framework/Web/Javascripts/source/prado/controls/controls.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 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"); -- cgit v1.2.3