Akira Laine %!s(int64=9) %!d(string=hai) anos
pai
achega
f752007825
Modificáronse 1 ficheiros con 1 adicións e 18 borrados
  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";