Changeset 30484 for extensions/greydragon/js
- Timestamp:
- Nov 14, 2014, 5:20:26 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/greydragon/js/theme.photo.js
r30210 r30484 30 30 31 31 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 } 32 41 $("ul.image-metadata li").removeClass("active"); 33 42 $(tab).addClass("active"); … … 41 50 } 42 51 normalizeComments(activeTab); 52 $("#image-metadata-toggle").removeClass("glyphicon-chevron-down").addClass("glyphicon-chevron-up"); 53 $(".image-metadata-tabs").show("fast"); 43 54 } 44 55 45 56 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 } 49 67 }); 50 68 }());
Note: See TracChangeset
for help on using the changeset viewer.