js bug fix

pull/776/head
razvanaldea89 2019-02-22 13:44:57 +02:00
parent 605f82b6cb
commit 537ecad0ab
1 changed files with 15 additions and 19 deletions

View File

@ -55,10 +55,7 @@ function setContentHeight() {
$LEFT_COL = $(".left_col"), $LEFT_COL = $(".left_col"),
$RIGHT_COL = $(".right_col"), $RIGHT_COL = $(".right_col"),
$NAV_MENU = $(".nav_menu"), $NAV_MENU = $(".nav_menu"),
$FOOTER = $("footer"), $FOOTER = $("footer");
randNum = function () {
return Math.floor(21 * Math.random()) + 20
};
// reset height // reset height
$RIGHT_COL.css('min-height', $(window).height()); $RIGHT_COL.css('min-height', $(window).height());
@ -74,20 +71,6 @@ function setContentHeight() {
}; };
$(document).ready(function () { $(document).ready(function () {
var CURRENT_URL = window.location.href.split("#")[0].split("?")[0],
$BODY = $("body"),
$MENU_TOGGLE = $("#menu_toggle"),
$SIDEBAR_MENU = $("#sidebar-menu"),
$SIDEBAR_FOOTER = $(".sidebar-footer"),
$LEFT_COL = $(".left_col"),
$RIGHT_COL = $(".right_col"),
$NAV_MENU = $(".nav_menu"),
$FOOTER = $("footer"),
randNum = function () {
return Math.floor(21 * Math.random()) + 20
};
$SIDEBAR_MENU.find('a').on('click', function (ev) { $SIDEBAR_MENU.find('a').on('click', function (ev) {
var $li = $(this).parent(); var $li = $(this).parent();
var child_menu = $('ul:first', $li); var child_menu = $('ul:first', $li);
@ -4272,6 +4255,19 @@ function init_echarts() {
} }
}(jQuery, "smartresize"); }(jQuery, "smartresize");
var CURRENT_URL = window.location.href.split("#")[0].split("?")[0],
$BODY = $("body"),
$MENU_TOGGLE = $("#menu_toggle"),
$SIDEBAR_MENU = $("#sidebar-menu"),
$SIDEBAR_FOOTER = $(".sidebar-footer"),
$LEFT_COL = $(".left_col"),
$RIGHT_COL = $(".right_col"),
$NAV_MENU = $(".nav_menu"),
$FOOTER = $("footer"),
randNum = function () {
return Math.floor(21 * Math.random()) + 20
};
$(document).ready(function () { $(document).ready(function () {
$(".collapse-link").on("click", function () { $(".collapse-link").on("click", function () {
var a = $(this).closest(".x_panel"), var a = $(this).closest(".x_panel"),