summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-07-24 20:33:17 +0000
committerctrlaltca@gmail.com <>2011-07-24 20:33:17 +0000
commit7eb2a754141e64d2cb1d47a21f9e4992205a289c (patch)
tree7ce206efcf8d1651893ba4ecd4d0fa37f11f0d45 /framework/Web/Javascripts
parentee0a68eddb3c63d072a1e9844522d58ea8b31757 (diff)
applied patch for #353
Diffstat (limited to 'framework/Web/Javascripts')
-rw-r--r--framework/Web/Javascripts/source/prado/controls/accordion.js27
1 files changed, 27 insertions, 0 deletions
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
@@ -65,6 +65,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 =
});
}
};
+