summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-10-31 12:14:13 +0000
committerctrlaltca@gmail.com <>2011-10-31 12:14:13 +0000
commit199ebf217cc4b597fc2044d50ef66b73dc4c5eaf (patch)
tree5bba50689e5a51ea811cd4d5a615e031952959e9
parent91bb0070322f3cbde4c4600574dfb995ef4360e4 (diff)
Bugfix: TListBox SelestionMode="Multiple" did not report correctly its selected indices on callback
Updated version of prado clientscript to 3.2
-rw-r--r--HISTORY2
-rw-r--r--framework/Web/Javascripts/source/prado/activecontrols/ajax3.js8
-rw-r--r--framework/Web/Javascripts/source/prado/prado.js2
3 files changed, 10 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 22f9b288..cf9e0fdf 100644
--- a/HISTORY
+++ b/HISTORY
@@ -36,6 +36,8 @@ BUG: Issue #365 - [Runtime Notice] Declaration of T${DriverName}MetaData::quoteT
BUG: Issue #367 - Parameterized RegularExpression property in UrlMapping raise TPhpErrorException in DOMDocument::loadXML() (Yves)
BUG: Issue #368 - Clearing selection of a TActiveDropDownList in callback should select its prompt (ctrlaltca)
ENH: Performance (micro)optimization in TUrlMapping::loadUrlMappings - invoke `getDefaultMappingClass` outside of loop (Yves)
+BUG: TActiveMultiView must update clientside only when necessary to get other active controls work fine inside it (ctrlaltca)
+BUG: TListBox doesn't correctly reports selected indices to serverside on callback
Version 3.1.10 Jul 17, 2011
BUG: Added missing timeout on TCacheHttpSession (ctrlaltca)
diff --git a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js
index b0e4e31e..2d410375 100644
--- a/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js
+++ b/framework/Web/Javascripts/source/prado/activecontrols/ajax3.js
@@ -869,7 +869,13 @@ Prado.CallbackRequest.prototype = Object.extend(Prado.AjaxRequest.prototype,
{
callback.PostDataLoaders.each(function(name)
{
- $A(document.getElementsByName(name)).each(function(element)
+ var elements=$A(document.getElementsByName(name));
+ if(elements.size() == 0)
+ {
+ name += '[]';
+ elements=$A(document.getElementsByName(name));
+ }
+ elements.each(function(element)
{
//IE will try to get elements with ID == name as well.
if(element.type && element.name == name)
diff --git a/framework/Web/Javascripts/source/prado/prado.js b/framework/Web/Javascripts/source/prado/prado.js
index d2fc8bdf..ce789456 100644
--- a/framework/Web/Javascripts/source/prado/prado.js
+++ b/framework/Web/Javascripts/source/prado/prado.js
@@ -8,7 +8,7 @@ var Prado =
* Version of Prado clientscripts
* @var Version
*/
- Version: '3.1',
+ Version: '3.2',
/**
* Registry for Prado components