Ignore:
Timestamp:
Nov 14, 2014, 5:20:26 AM (10 years ago)
Author:
SergeD
Message:

version 1.0.14 - please refer to changelog for details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/greydragon/js/theme.photo.js

    r30210 r30484  
    3030
    3131  function switchTab(tab) {
     32    if ($(tab).is("#image-metadata-toggle")) {
     33      $(".image-metadata-tabs").slideToggle("fast");     
     34      if ($("#image-metadata-toggle").is(".glyphicon-chevron-down")) {
     35        $("#image-metadata-toggle").removeClass("glyphicon-chevron-down").addClass("glyphicon-chevron-up");
     36      }else{
     37        $("#image-metadata-toggle").removeClass("glyphicon-chevron-up").addClass("glyphicon-chevron-down");
     38      }
     39      return;
     40    }
    3241    $("ul.image-metadata li").removeClass("active");
    3342    $(tab).addClass("active");
     
    4150    }
    4251    normalizeComments(activeTab);
     52    $("#image-metadata-toggle").removeClass("glyphicon-chevron-down").addClass("glyphicon-chevron-up");
     53    $(".image-metadata-tabs").show("fast");
    4354  }
    4455
    4556  jQuery(function(){
    46     setCurrentTab();
    47 
    48     $("ul.image-metadata li").click(function() { switchTab(this); });
     57    if ($('#image-metadata-ico').length) {
     58      $("#image-metadata-ico .meta-desc").colorbox({ inline:true, href:"div#tab-desc", className:"image-metadata-overlay", speed:200, opacity:0.3 });
     59      $("#image-metadata-ico .meta-info").colorbox({ inline:true, href:"div#tab-meta", className:"image-metadata-overlay", speed:200, opacity:0.3 });
     60      $("#image-metadata-ico .meta-exif").colorbox({ inline:true, href:"div#tab-exif", className:"image-metadata-overlay", speed:200, opacity:0.3 });
     61      $("#image-metadata-ico .meta-tags").colorbox({ inline:true, href:"div#tab-tags", className:"image-metadata-overlay", speed:200, opacity:0.3 });
     62      $("#image-metadata-ico .meta-comment").colorbox({ inline:true, href:"div#tab-comment", className:"image-metadata-overlay", speed:200, opacity:0.3, width: "1200px" });
     63    }else{
     64      setCurrentTab();
     65      $("ul.image-metadata li").click(function() { switchTab(this); });
     66    }
    4967  });
    5068}());
Note: See TracChangeset for help on using the changeset viewer.