|
|
@ -3,19 +3,15 @@
|
|
|
|
/*globals ajaxify, config, utils, app, socket, NProgress*/
|
|
|
|
/*globals ajaxify, config, utils, app, socket, NProgress*/
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
var env = utils.findBootstrapEnvironment();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setupNProgress();
|
|
|
|
setupNProgress();
|
|
|
|
setupTaskbar();
|
|
|
|
setupTaskbar();
|
|
|
|
setupEditedByIcon();
|
|
|
|
setupEditedByIcon();
|
|
|
|
setupMobileMenu();
|
|
|
|
setupMobileMenu();
|
|
|
|
setupQuickReply();
|
|
|
|
setupQuickReply();
|
|
|
|
|
|
|
|
|
|
|
|
if (env === 'xs' || env ==='sm') {
|
|
|
|
$(".navbar-fixed-top").autoHidingNavbar({
|
|
|
|
$(".navbar-fixed-top").autoHidingNavbar({
|
|
|
|
showOnBottom: false
|
|
|
|
showOnBottom: false
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function setupNProgress() {
|
|
|
|
function setupNProgress() {
|
|
|
|
$(window).on('action:ajaxify.start', function() {
|
|
|
|
$(window).on('action:ajaxify.start', function() {
|
|
|
|