From 790a237cd747154ba14a00a32a042389770e6a21 Mon Sep 17 00:00:00 2001 From: christianesperar Date: Thu, 12 May 2016 00:10:31 +0800 Subject: [PATCH] Fix error on data tables export functionalities --- production/js/custom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/production/js/custom.js b/production/js/custom.js index 61ed414a..47896685 100755 --- a/production/js/custom.js +++ b/production/js/custom.js @@ -4,7 +4,7 @@ * and open the template in the editor. */ -var URL = window.location.href.split('?')[0], +var CURRENT_URL = window.location.href.split('?')[0], $BODY = $('body'), $MENU_TOGGLE = $('#menu_toggle'), $SIDEBAR_MENU = $('#sidebar-menu'), @@ -74,10 +74,10 @@ $(document).ready(function() { }); // check active menu - $SIDEBAR_MENU.find('a[href="' + URL + '"]').parent('li').addClass('current-page'); + $SIDEBAR_MENU.find('a[href="' + CURRENT_URL + '"]').parent('li').addClass('current-page'); $SIDEBAR_MENU.find('a').filter(function () { - return this.href == URL; + return this.href == CURRENT_URL; }).parent('li').addClass('current-page').parents('ul').slideDown(function() { setContentHeight(); }).parent().addClass('active');