diff --git a/ext/static_files/script.js b/ext/static_files/script.js index ac7273dd..eb782857 100644 --- a/ext/static_files/script.js +++ b/ext/static_files/script.js @@ -6,7 +6,7 @@ $(document).ready(function() { $.fn.highlight = function (fadeOut) { fadeOut = typeof fadeOut !== 'undefined' ? fadeOut : 5000; $(this).each(function () { - var el = $(this); + let el = $(this); $("
") .width(el.outerWidth()) .height(el.outerHeight()) @@ -33,27 +33,26 @@ $(document).ready(function() { $("table.sortable").tablesorter(); /** Setup sidebar toggle **/ + let sidebar_hidden = []; try { - var sidebar_hidden = (Cookies.get("ui-sidebar-hidden") || "").split("|"); - for(var i in sidebar_hidden) { - if(sidebar_hidden.hasOwnProperty(i) && sidebar_hidden[i].length > 0) { + sidebar_hidden = (Cookies.get("ui-sidebar-hidden") || "").split("|"); + for (let i=0; i