Line | |
---|
1 | /** |
---|
2 | * ----------------------------------------------------------------------------- |
---|
3 | * file: markup.tabs.js |
---|
4 | * file version: 1.0.0 |
---|
5 | * date: 2011-09-21 |
---|
6 | * |
---|
7 | * JS file provided by the piwigo's plugin "GrumPluginClasses" |
---|
8 | * |
---|
9 | * ----------------------------------------------------------------------------- |
---|
10 | * Author : Grum |
---|
11 | * email : grum@piwigo.com |
---|
12 | * website : http://photos.grum.fr |
---|
13 | * PWG user : http://forum.phpwebgallery.net/profile.php?id=3706 |
---|
14 | * |
---|
15 | * << May the Little SpaceFrog be with you ! >> |
---|
16 | * ----------------------------------------------------------------------------- |
---|
17 | */ |
---|
18 | $(window).bind('load', |
---|
19 | function () |
---|
20 | { |
---|
21 | $('#iGpcTabs a').bind('click', |
---|
22 | function () |
---|
23 | { |
---|
24 | if($(this).hasClass('gpcTabSelected')) return(false); |
---|
25 | |
---|
26 | $('#iGpcTabs a.gpcTabSelected').removeClass('gpcTabSelected').addClass('gpcTabNotSelected'); |
---|
27 | $(this).removeClass('gpcTabNotSelected').addClass('gpcTabSelected'); |
---|
28 | |
---|
29 | $('div.gpcTabContent').css('display', 'none'); |
---|
30 | |
---|
31 | $($(this).attr('tabId')).css('display', 'block'); |
---|
32 | } |
---|
33 | ); |
---|
34 | } |
---|
35 | ); |
---|
Note: See
TracBrowser
for help on using the repository browser.