-/*\r
- * Ext JS Library 2.2.1\r
- * Copyright(c) 2006-2009, Ext JS, LLC.\r
- * licensing@extjs.com\r
- * \r
- * http://extjs.com/license\r
- */\r
-\r
-Ext.onReady(function(){\r
-\r
- var tabs = new Ext.TabPanel({\r
- renderTo:'tabs',\r
- resizeTabs:true, // turn on tab resizing\r
- minTabWidth: 115,\r
- tabWidth:135,\r
- enableTabScroll:true,\r
- width:600,\r
- height:250,\r
- defaults: {autoScroll:true},\r
- plugins: new Ext.ux.TabCloseMenu()\r
- });\r
-\r
- // tab generation code\r
- var index = 0;\r
- while(index < 7){\r
- addTab();\r
- }\r
- function addTab(){\r
- tabs.add({\r
- title: 'New Tab ' + (++index),\r
- iconCls: 'tabs',\r
- html: 'Tab Body ' + (index) + '<br/><br/>'\r
- + Ext.example.bogusMarkup,\r
- closable:true\r
- }).show();\r
- }\r
-\r
- new Ext.Button({\r
- text: 'Add Tab',\r
- handler: addTab,\r
- iconCls:'new-tab'\r
- }).render(document.body, 'tabs');\r
+/*!
+ * Ext JS Library 3.1.0
+ * Copyright(c) 2006-2009 Ext JS, LLC
+ * licensing@extjs.com
+ * http://www.extjs.com/license
+ */
+Ext.onReady(function(){
+
+ var tabs = new Ext.TabPanel({
+ renderTo:'tabs',
+ resizeTabs:true, // turn on tab resizing
+ minTabWidth: 115,
+ tabWidth:135,
+ enableTabScroll:true,
+ width:600,
+ height:250,
+ defaults: {autoScroll:true},
+ plugins: new Ext.ux.TabCloseMenu()
+ });
+
+ // tab generation code
+ var index = 0;
+ while(index < 7){
+ addTab();
+ }
+ function addTab(){
+ tabs.add({
+ title: 'New Tab ' + (++index),
+ iconCls: 'tabs',
+ html: 'Tab Body ' + (index) + '<br/><br/>'
+ + Ext.example.bogusMarkup,
+ closable:true
+ }).show();
+ }
+
+ new Ext.Button({
+ text: 'Add Tab',
+ handler: addTab,
+ iconCls:'new-tab'
+ }).render(document.body, 'tabs');
});
\ No newline at end of file