Akira Laine 9 éve
szülő
commit
f752007825
1 módosított fájl, 1 hozzáadás és 18 törlés
  1. 1 18
      app/client/scripts/onCreated.js

+ 1 - 18
app/client/scripts/onCreated.js

@@ -368,24 +368,7 @@ Template.room.onCreated(function () {
             }
         });
         $("body").on("click", function(e){
-            console.log(e.target);
-            var marginRightWidth = ($(document).width() - $(".container").width()) / 2 + "px";
-            if($("#playlist-slide-out").css("right") === "0px"){
-                var interval = Meteor.setInterval(function(){
-                    if($("#playlist-slide-out").css("right") < "0px"){
-                        $(".container").css("margin-right", marginRightWidth);
-                        Meteor.clearInterval(interval);
-                    }
-                }, 10);
-            }
-            if($("#chat-slide-out").css("right") === "0px"){
-                var interval = Meteor.setInterval(function(){
-                    if($("#chat-slide-out").css("right") < "0px"){
-                        $(".container").css("margin-right", marginRightWidth);
-                        Meteor.clearInterval(interval);
-                    }
-                }, 10);
-            }
+
         });
         $(window).on("resize", function(){
             var marginRightWidth = ($(document).width() - $(".container").width()) / 2 + "px";