~fusonic/chive/1.1

« back to all changes in this revision

Viewing changes to yii/web/widgets/CTabView.php

  • Committer: Matthias Burtscher
  • Date: 2010-02-12 09:12:35 UTC
  • Revision ID: matthias.burtscher@fusonic.net-20100212091235-jqxrb62klx872ajc
* Updated Yii to 1.1.0
* Removed CodePress and CodeMirror
* Updated jQuery and some plugins
* Cleaned some code ...

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 *
5
5
 * @author Qiang Xue <qiang.xue@gmail.com>
6
6
 * @link http://www.yiiframework.com/
7
 
 * @copyright Copyright &copy; 2008-2009 Yii Software LLC
 
7
 * @copyright Copyright &copy; 2008-2010 Yii Software LLC
8
8
 * @license http://www.yiiframework.com/license/
9
9
 */
10
10
 
49
49
 * when the page is initially loaded, set {@link activeTab} to be the ID of the desired tab.
50
50
 *
51
51
 * @author Qiang Xue <qiang.xue@gmail.com>
52
 
 * @version $Id: CTabView.php 1066 2009-05-26 15:23:48Z qiang.xue $
 
52
 * @version $Id: CTabView.php 1678 2010-01-07 21:02:00Z qiang.xue $
53
53
 * @package system.web.widgets
54
54
 * @since 1.0
55
55
 */
119
119
 
120
120
                if($this->activeTab===null || !isset($this->tabs[$this->activeTab]))
121
121
                {
122
 
                        foreach($this->tabs as $id=>$tab)
123
 
                        {
124
 
                                $this->activeTab=$id;
125
 
                                break;
126
 
                        }
 
122
                        reset($this->tabs);
 
123
                        list($this->activeTab, )=each($this->tabs);
127
124
                }
128
125
 
129
126
                $htmlOptions=$this->htmlOptions;