Last change
on this file since 30848 was
16458,
checked in by grum, 12 years ago
|
feature:2634- compatibility with Piwigo 2.4
Update URI + small changes
|
File size:
1008 bytes
|
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://www.grum.fr |
---|
13 | * |
---|
14 | * << May the Little SpaceFrog be with you ! >> |
---|
15 | * ----------------------------------------------------------------------------- |
---|
16 | */ |
---|
17 | $(window).bind('load', |
---|
18 | function () |
---|
19 | { |
---|
20 | $('#iGpcTabs a').bind('click', |
---|
21 | function () |
---|
22 | { |
---|
23 | if($(this).hasClass('gpcTabSelected')) return(false); |
---|
24 | |
---|
25 | $('#iGpcTabs a.gpcTabSelected').removeClass('gpcTabSelected').addClass('gpcTabNotSelected'); |
---|
26 | $(this).removeClass('gpcTabNotSelected').addClass('gpcTabSelected'); |
---|
27 | |
---|
28 | $('div.gpcTabContent').css('display', 'none'); |
---|
29 | |
---|
30 | $($(this).attr('tabId')).css('display', 'block'); |
---|
31 | } |
---|
32 | ); |
---|
33 | } |
---|
34 | ); |
---|
Note: See
TracBrowser
for help on using the repository browser.