mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
moved collapse to theme
This commit is contained in:
@@ -458,14 +458,6 @@ app.cacheBuster = null;
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function collapseNavigationOnClick() {
|
|
||||||
$('#nav-dropdown').off('click').on('click', '#main-nav a, #user-control-list a, #logged-out-menu li a, #logged-in-menu .visible-xs, #chat-list a', function() {
|
|
||||||
if (($('.navbar .navbar-collapse').length && $('.navbar .navbar-collapse').hasClass('in')) || ($('body').hasClass('slide-in') && $('.navbar-slide-in').length)) {
|
|
||||||
$('.navbar-header button').click();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function handleStatusChange() {
|
function handleStatusChange() {
|
||||||
$('#user-control-list .user-status').off('click').on('click', function(e) {
|
$('#user-control-list .user-status').off('click').on('click', function(e) {
|
||||||
var status = $(this).attr('data-status');
|
var status = $(this).attr('data-status');
|
||||||
@@ -484,8 +476,6 @@ app.cacheBuster = null;
|
|||||||
var url = ajaxify.start(window.location.pathname.slice(1), true, window.location.search);
|
var url = ajaxify.start(window.location.pathname.slice(1), true, window.location.search);
|
||||||
ajaxify.end(url, app.template);
|
ajaxify.end(url, app.template);
|
||||||
|
|
||||||
collapseNavigationOnClick();
|
|
||||||
|
|
||||||
handleStatusChange();
|
handleStatusChange();
|
||||||
|
|
||||||
if (config.searchEnabled) {
|
if (config.searchEnabled) {
|
||||||
|
|||||||
Reference in New Issue
Block a user