mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
don't initialize taskbar until dom is ready
This commit is contained in:
@@ -585,6 +585,10 @@ var socket,
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
require(['taskbar'], function(taskbar) {
|
||||||
|
taskbar.init();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -103,16 +103,13 @@ define('taskbar', function() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!taskbar.initialized) {
|
|
||||||
taskbar.init();
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
push: taskbar.push,
|
push: taskbar.push,
|
||||||
discard: taskbar.discard,
|
discard: taskbar.discard,
|
||||||
minimize: taskbar.minimize,
|
minimize: taskbar.minimize,
|
||||||
toggleNew: taskbar.toggleNew,
|
toggleNew: taskbar.toggleNew,
|
||||||
updateActive: taskbar.updateActive,
|
updateActive: taskbar.updateActive,
|
||||||
isActive: taskbar.isActive
|
isActive: taskbar.isActive,
|
||||||
|
init: taskbar.init
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user