diff options
author | gnits <github@devworx.hu> | 2014-03-27 07:02:10 +0100 |
---|---|---|
committer | gnits <github@devworx.hu> | 2014-03-27 07:02:10 +0100 |
commit | a4d20ed4dddb6fc02be879b73039ea7fc977a17c (patch) | |
tree | 596fe1d217358f7121e9a8896c94ed89dedb4fc6 /framework/Web/Javascripts/source | |
parent | e2fb2ab1e2b5925f16d4dd5c3ac514a0e54ee026 (diff) |
Fix for tab control removing all extra css classes from tabs
TTabControl's client-side wrapper has previously wiped out all extra
classes from tab views. Behaviour changed to reflect that of the
elementClicked()'s.
Diffstat (limited to 'framework/Web/Javascripts/source')
-rw-r--r-- | framework/Web/Javascripts/source/prado/controls/tabpanel.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/Javascripts/source/prado/controls/tabpanel.js b/framework/Web/Javascripts/source/prado/controls/tabpanel.js index 866e45fb..61a18a28 100644 --- a/framework/Web/Javascripts/source/prado/controls/tabpanel.js +++ b/framework/Web/Javascripts/source/prado/controls/tabpanel.js @@ -25,10 +25,10 @@ Prado.WebUI.TTabPanel = jQuery.klass(Prado.WebUI.Control, if (view) if(this.hiddenField.value == i) { - element.className=this.activeCssClass; + jQuery(element).addClass(this.activeCssClass).removeClass(this.normalCssClass); jQuery(view).show(); } else { - element.className=this.normalCssClass; + jQuery(element).addClass(this.normalCssClass).removeClass(this.activeCssClass); jQuery(view).hide(); } } |