From 199ebf217cc4b597fc2044d50ef66b73dc4c5eaf Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Mon, 31 Oct 2011 12:14:13 +0000 Subject: Bugfix: TListBox SelestionMode="Multiple" did not report correctly its selected indices on callback Updated version of prado clientscript to 3.2 --- framework/Web/Javascripts/source/prado/activecontrols/ajax3.js | 8 +++++++- framework/Web/Javascripts/source/prado/prado.js | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'framework') 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 -- cgit v1.2.3