summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source
diff options
context:
space:
mode:
authorctrlaltca <>2012-05-11 16:12:15 +0000
committerctrlaltca <>2012-05-11 16:12:15 +0000
commit9a330a7b433fc4d1d14e08e1856077c5ec730c09 (patch)
tree28ab9471f31c3f4fa7426d5c0382229c271a5c4c /framework/Web/Javascripts/source
parent2463e7f6c30299410c3ed16ba76aa2ae6dffaa91 (diff)
Issue #210 Improvement: Auto-switch for TTabPanel
Diffstat (limited to 'framework/Web/Javascripts/source')
-rw-r--r--framework/Web/Javascripts/source/prado/controls/tabpanel.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/framework/Web/Javascripts/source/prado/controls/tabpanel.js b/framework/Web/Javascripts/source/prado/controls/tabpanel.js
index 900dfcb3..157664e3 100644
--- a/framework/Web/Javascripts/source/prado/controls/tabpanel.js
+++ b/framework/Web/Javascripts/source/prado/controls/tabpanel.js
@@ -12,10 +12,13 @@ Prado.WebUI.TTabPanel = Class.create(Prado.WebUI.Control,
{
var item = options.Views[i];
var element = $(item+'_0');
- if (element)
- if (options.ViewsVis[i])
+ if (element && options.ViewsVis[i])
+ {
this.observe(element, "click", this.elementClicked.bindEvent(this,item));
-
+ if (options.AutoSwitch)
+ this.observe(element, "mouseenter", this.elementClicked.bindEvent(this,item));
+ }
+
if(element)
{
var view = $(options.Views[i]);