[limb-svn] r6289 - 3.x/trunk/limb/cms/shared/js
svn at limb-project.com
svn at limb-project.com
Wed Sep 12 00:28:53 MSD 2007
Author: pachanga
Date: 2007-09-12 00:28:52 +0400 (Wed, 12 Sep 2007)
New Revision: 6289
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6289
Added:
3.x/trunk/limb/cms/shared/js/autotabs.js
Modified:
3.x/trunk/limb/cms/shared/js/tabs.js
Log:
-- moving autotabs into separate autotabs.js
Added: 3.x/trunk/limb/cms/shared/js/autotabs.js
===================================================================
--- 3.x/trunk/limb/cms/shared/js/autotabs.js (rev 0)
+++ 3.x/trunk/limb/cms/shared/js/autotabs.js 2007-09-11 20:28:52 UTC (rev 6289)
@@ -0,0 +1,28 @@
+
+if(jQuery)
+{
+ jQuery(window).ready(function()
+ {
+ autoTabs();
+ });
+
+ function autoTabs()
+ {
+ jQuery('.tabs').each(function(){
+ var tabs = [];
+
+ var ul = jQuery(this).children('ul');
+ ul.addClass('bookmarks');
+ ul.children('li').each(function(){
+ if(this.id)
+ {
+ jQuery('#tab_' + this.id).addClass('bookmarks_content');
+ tabs.push(new CMS.Tab(this.id, 'tab_' + this.id));
+ }
+ });
+
+ if(tabs.length)
+ new CMS.TabsContainer(tabs);
+ });
+ }
+}
Modified: 3.x/trunk/limb/cms/shared/js/tabs.js
===================================================================
--- 3.x/trunk/limb/cms/shared/js/tabs.js 2007-09-11 11:11:51 UTC (rev 6288)
+++ 3.x/trunk/limb/cms/shared/js/tabs.js 2007-09-11 20:28:52 UTC (rev 6289)
@@ -114,30 +114,3 @@
}
});
-if(jQuery)
-{
- jQuery(window).ready(function()
- {
- autoTabs();
- });
-
- function autoTabs()
- {
- jQuery('.tabs').each(function(){
- var tabs = [];
-
- var ul = jQuery(this).children('ul');
- ul.addClass('bookmarks');
- ul.children('li').each(function(){
- if(this.id)
- {
- jQuery('#tab_' + this.id).addClass('bookmarks_content');
- tabs.push(new CMS.Tab(this.id, 'tab_' + this.id));
- }
- });
-
- if(tabs.length)
- new CMS.TabsContainer(tabs);
- });
- }
-}
More information about the limb-svn
mailing list