summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/source
diff options
context:
space:
mode:
authortof <>2007-08-24 13:34:25 +0000
committertof <>2007-08-24 13:34:25 +0000
commitc542acd28d0a391b697881c7e0bbc63040a3596b (patch)
tree0425923363456f8d48546e32529151c0c2bc66de /framework/Web/Javascripts/source
parent627dbd7b8d6c530d8dfe886805164926bd4612c0 (diff)
Fixed #696
Diffstat (limited to 'framework/Web/Javascripts/source')
-rw-r--r--framework/Web/Javascripts/source/prado/controls/controls.js21
1 files changed, 12 insertions, 9 deletions
diff --git a/framework/Web/Javascripts/source/prado/controls/controls.js b/framework/Web/Javascripts/source/prado/controls/controls.js
index e0f9218c..e024234c 100644
--- a/framework/Web/Javascripts/source/prado/controls/controls.js
+++ b/framework/Web/Javascripts/source/prado/controls/controls.js
@@ -322,16 +322,19 @@ Prado.WebUI.TTabPanel.prototype =
for(var i = 0; i<length; i++)
{
var item = this.views[i];
- if(item == viewID)
+ if ($(item))
{
- $(item+'_0').className=this.activeCssClass;
- $(item).show();
- this.hiddenField.value=i;
- }
- else
- {
- $(item+'_0').className=this.normalCssClass;
- $(item).hide();
+ if(item == viewID)
+ {
+ $(item+'_0').className=this.activeCssClass;
+ $(item).show();
+ this.hiddenField.value=i;
+ }
+ else
+ {
+ $(item+'_0').className=this.normalCssClass;
+ $(item).hide();
+ }
}
}
}