mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-02-11 20:09:32 +00:00
Moved all listeners to listeners.js
This commit is contained in:
@@ -2,13 +2,6 @@ var List = {
|
||||
|
||||
empty: false,
|
||||
|
||||
channel_listener: function()
|
||||
{
|
||||
socket.on("channel", function(msg){
|
||||
List.channel_function(msg);
|
||||
});
|
||||
},
|
||||
|
||||
channel_function: function(msg)
|
||||
{
|
||||
switch(msg[0])
|
||||
@@ -75,7 +68,7 @@ var List = {
|
||||
|
||||
|
||||
if(lazy_load){
|
||||
if(window.mobilecheck()) $(".list-image").lazyload({});
|
||||
if(Helper.mobilecheck()) $(".list-image").lazyload({});
|
||||
else{
|
||||
$(".list-image").lazyload({container: $("#wrapper")}).removeClass("lazy");
|
||||
|
||||
@@ -217,7 +210,7 @@ var List = {
|
||||
},
|
||||
|
||||
show: function(){
|
||||
if(!window.mobilecheck())
|
||||
if(!Helper.mobilecheck())
|
||||
{
|
||||
if(showToggle){
|
||||
showToggle=false;
|
||||
|
||||
Reference in New Issue
Block a user