Last change
on this file since 13551 was
13551,
checked in by plg, 12 years ago
|
import theme Simple version 2.4
compatibility with piwigo 2.2:
- update template, language strings + misc things
- use rating and core.scripts from default theme
- cleanup useless javascript stuff
- use new combined_css feature - thanks to P@t
- replace known_script with combine_script
|
File size:
873 bytes
|
Line | |
---|
1 | // if cl_conflit is not used, use jQuery.noConflict to work with other libs |
---|
2 | if (typeof (Conflit) == "undefined") |
---|
3 | jQuery.noConflict(); |
---|
4 | |
---|
5 | jQuery(document).ready(function($){ |
---|
6 | $("#theComments h3").click(function () { |
---|
7 | $("#theComments > div").toggle("slow"); |
---|
8 | }); |
---|
9 | |
---|
10 | $("#menuswitcher").click(function(){ |
---|
11 | if ($("#menubar").is(":hidden")) { |
---|
12 | $("#menubar").show("slow"); |
---|
13 | $.cookie('side-menu', 'showing', {path: "/"}); |
---|
14 | return false; |
---|
15 | } else { |
---|
16 | $("#menubar").hide("slow"); |
---|
17 | $.cookie('side-menu', 'hiding', {path: "/"}); |
---|
18 | return false; |
---|
19 | } |
---|
20 | }); |
---|
21 | |
---|
22 | // creates a variable with the contents of the cookie side-menu |
---|
23 | var sidemenu = $.cookie('side-menu'); |
---|
24 | // if cookie says the menu is hiding, keep it hidden! |
---|
25 | if (sidemenu == 'hiding') { |
---|
26 | $("#menubar").hide(); |
---|
27 | } |
---|
28 | if (sidemenu == 'showing') { |
---|
29 | $("#menubar").show(); |
---|
30 | }; |
---|
31 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.