integration/js/tagplayer.js
changeset 118 124f7745a3d6
parent 81 a2befc2110c1
--- a/integration/js/tagplayer.js	Fri Jan 25 18:55:07 2013 +0100
+++ b/integration/js/tagplayer.js	Tue Feb 05 18:41:29 2013 +0100
@@ -593,6 +593,14 @@
     
     $("#btnInfo, .lightBoxClose").click(function() {
         $(".lightBoxWrap").toggle();
+        if (currentMedia) {
+            if ($(".lightBoxWrap").is(":visible")) {
+                currentMedia.pause();
+            } else {
+                currentMedia.play();
+            }
+        }
+        
         return false;
     });