diff options
author | tof <> | 2007-08-24 13:34:25 +0000 |
---|---|---|
committer | tof <> | 2007-08-24 13:34:25 +0000 |
commit | c542acd28d0a391b697881c7e0bbc63040a3596b (patch) | |
tree | 0425923363456f8d48546e32529151c0c2bc66de | |
parent | 627dbd7b8d6c530d8dfe886805164926bd4612c0 (diff) |
Fixed #696
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | framework/Web/Javascripts/source/prado/controls/controls.js | 21 |
2 files changed, 13 insertions, 9 deletions
@@ -7,6 +7,7 @@ BUG: Ticket#656 - TDatePicker does not return correct value when in callback mod BUG: Ticket#662 - Ensure TForm to properly encode the ampersand in action URL (Qiang) BUG: Ticket#666 - TActiveRecord::deleteAll() method always requires a criteria or null parameter (Qiang) BUG: Ticket#670 - TDatePicker: Year Issue (Christophe) +BUG: Ticket#696 - TTabPanel: JS error when one of the tabs is invisible (Qiang,Christophe) ENH: Ticket#577 - Added image button support for TPager (Qiang) ENH: Ticket#623 - TMemCache to support multiple servers (Carl) ENH: Ticket#667 - Added TFeedService.ContentType property (Qiang) 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();
+ }
}
}
}
|