From: <dj...@us...> - 2012-01-11 18:15:02
|
Revision: 8699 http://xoops.svn.sourceforge.net/xoops/?rev=8699&view=rev Author: djculex Date: 2012-01-11 18:14:51 +0000 (Wed, 11 Jan 2012) Log Message: ----------- rename xoops_smallworldadmin to $ to avoid jquery conflict Modified Paths: -------------- XoopsModules/smallworld/trunk/js/smallworld_tabs.js Modified: XoopsModules/smallworld/trunk/js/smallworld_tabs.js =================================================================== --- XoopsModules/smallworld/trunk/js/smallworld_tabs.js 2012-01-11 18:06:13 UTC (rev 8698) +++ XoopsModules/smallworld/trunk/js/smallworld_tabs.js 2012-01-11 18:14:51 UTC (rev 8699) @@ -14,24 +14,22 @@ * @author Culex - homepage.: http://culex.dk & email.: cu...@cu... **/ -var xoops_smallworld_Admin = jQuery.noConflict(); +$(document).ready(function() { -xoops_smallworld_Admin(document).ready(function() { - //When page loads... - xoops_smallworld_Admin(".smallworldadmin_tab_content").hide(); //Hide all content - xoops_smallworld_Admin("ul.smallworldadmin_tabs li:first").addClass("active").show(); //Activate first tab - xoops_smallworld_Admin(".smallworldadmin_tab_content:first").show(); //Show first tab content + $(".smallworldadmin_tab_content").hide(); //Hide all content + $("ul.smallworldadmin_tabs li:first").addClass("active").show(); //Activate first tab + $(".smallworldadmin_tab_content:first").show(); //Show first tab content //On Click Event - xoops_smallworld_Admin("ul.smallworldadmin_tabs li").click(function() { + $("ul.smallworldadmin_tabs li").click(function() { - xoops_smallworld_Admin("ul.smallworldadmin_tabs li").removeClass("active"); //Remove any "active" class - xoops_smallworld_Admin(this).addClass("active"); //Add "active" class to selected tab - xoops_smallworld_Admin(".smallworldadmin_tab_content").hide(); //Hide all tab content + $("ul.smallworldadmin_tabs li").removeClass("active"); //Remove any "active" class + $(this).addClass("active"); //Add "active" class to selected tab + $(".smallworldadmin_tab_content").hide(); //Hide all tab content - var activeTab = xoops_smallworld_Admin(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content - xoops_smallworld_Admin(activeTab).fadeIn(); //Fade in the active ID content + var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content + $(activeTab).fadeIn(); //Fade in the active ID content return false; }); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |