From 7eb2a754141e64d2cb1d47a21f9e4992205a289c Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Sun, 24 Jul 2011 20:33:17 +0000 Subject: applied patch for #353 --- .../Javascripts/source/prado/controls/accordion.js | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'framework') diff --git a/framework/Web/Javascripts/source/prado/controls/accordion.js b/framework/Web/Javascripts/source/prado/controls/accordion.js index f25b5e1a..e6af5e2e 100644 --- a/framework/Web/Javascripts/source/prado/controls/accordion.js +++ b/framework/Web/Javascripts/source/prado/controls/accordion.js @@ -64,6 +64,24 @@ Prado.WebUI.TAccordion.prototype = }, elementClicked : function(event,viewID) + { + // dummy effect to force processing of click into the event queue + // is not actually supposed to change the appearance of the accordion + var obj = this; + new Effect.Opacity( + this.element, + { + from: 1.0, to: 1.0, duration: 0.0, + queue: { + position: 'end', + scope: 'accordion' + }, + afterFinish: function() { obj.processElementClick(event, viewID); } + } + ); + }, + + processElementClick : function(event,viewID) { var i = 0; for(var index in this.options.Views) @@ -103,6 +121,10 @@ Prado.WebUI.TAccordion.prototype = var effects = new Array(); var options = { sync: true, + queue: { + position: 'end', + scope: 'accordion' + }, scaleFrom: 0, scaleContent: false, transition: Effect.Transitions.sinoidal, @@ -118,6 +140,10 @@ Prado.WebUI.TAccordion.prototype = options = { sync: true, + queue: { + position: 'end', + scope: 'accordion' + }, scaleContent: false, transition: Effect.Transitions.sinoidal, scaleX: false, @@ -150,3 +176,4 @@ Prado.WebUI.TAccordion.prototype = }); } }; + -- cgit v1.2.3