[limb-svn] r6291 - in 3.x/trunk/limb/cms: shared/js template/_cms
svn at limb-project.com
svn at limb-project.com
Wed Sep 12 08:33:51 MSD 2007
Author: pachanga
Date: 2007-09-12 08:33:51 +0400 (Wed, 12 Sep 2007)
New Revision: 6291
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6291
Added:
3.x/trunk/limb/cms/shared/js/auto_tabs.js
Removed:
3.x/trunk/limb/cms/shared/js/autotabs.js
Modified:
3.x/trunk/limb/cms/template/_cms/js.html
Log:
-- renaming autotabs.js into auto_tabs.js and adding them into js.html
Copied: 3.x/trunk/limb/cms/shared/js/auto_tabs.js (from rev 6289, 3.x/trunk/limb/cms/shared/js/autotabs.js)
===================================================================
--- 3.x/trunk/limb/cms/shared/js/auto_tabs.js (rev 0)
+++ 3.x/trunk/limb/cms/shared/js/auto_tabs.js 2007-09-12 04:33:51 UTC (rev 6291)
@@ -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);
+ });
+ }
+}
Deleted: 3.x/trunk/limb/cms/shared/js/autotabs.js
===================================================================
--- 3.x/trunk/limb/cms/shared/js/autotabs.js 2007-09-11 21:19:53 UTC (rev 6290)
+++ 3.x/trunk/limb/cms/shared/js/autotabs.js 2007-09-12 04:33:51 UTC (rev 6291)
@@ -1,28 +0,0 @@
-
-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/template/_cms/js.html
===================================================================
--- 3.x/trunk/limb/cms/template/_cms/js.html 2007-09-11 21:19:53 UTC (rev 6290)
+++ 3.x/trunk/limb/cms/template/_cms/js.html 2007-09-12 04:33:51 UTC (rev 6291)
@@ -6,6 +6,6 @@
<script src="/shared/js/js/limb/forms.js"></script>
<script src="/shared/js/js/limb/form_elements.js"></script>
<script src="/shared/js/js/limb/auto_popup.js"></script>
-<script type="text/javascript" src="/shared/cms/js/tabs.js"></script>
-
+<script src="/shared/cms/js/tabs.js"></script>
+<script src="/shared/cms/js/auto_tabs.js"></script>
<script src="/shared/cms/js/cp.js"></script>
More information about the limb-svn
mailing list