source: extensions/simple_themes/simple/js/simplescripts.js @ 13549

Last change on this file since 13549 was 13549, checked in by plg, 12 years ago

import theme Simple version 2.3

  • if cl_conflit is used, don't add jQuery.noConflict
  • fix the possibility to toggle visibility of image informations
  • show logout link when connected - thanks to gbo
  • update jquery to 1.4.4
  • backport commit from piwigo: r6244, r6430 & r6438
  • add gitignore
  • update javascripts + add script to combine/minify
  • apply r6594 from piwigo's trunk
  • move jquery in the header, using known_script
  • translation for the menu title
  • add 1px icon start_filter.png to avoid loading error with rvtree plugin
  • margin for error & info divs
File size: 873 bytes
Line 
1// if cl_conflit is not used, use jQuery.noConflict to work with other libs
2if (typeof (Conflit) == "undefined")
3   jQuery.noConflict();
4
5jQuery(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.