diff --git a/sickchill/gui/slick/js/ajaxNotifications.js b/sickchill/gui/slick/js/ajaxNotifications.js index c24213c748..cf2f69e27a 100644 --- a/sickchill/gui/slick/js/ajaxNotifications.js +++ b/sickchill/gui/slick/js/ajaxNotifications.js @@ -26,7 +26,9 @@ function displayPNotify(type, title, message, id) { hide: true, history: true, shadow: true, - stack: {dir1: 'up', dir2: 'left', firstpos1: 25, firstpos2: 25}, + stack: { + dir1: 'up', dir2: 'left', firstpos1: 25, firstpos2: 25, + }, styling: 'fontawesome', width: '340px', destroy: true, diff --git a/sickchill/gui/slick/js/browser.js b/sickchill/gui/slick/js/browser.js index ab2f0d82a0..09db03c38c 100644 --- a/sickchill/gui/slick/js/browser.js +++ b/sickchill/gui/slick/js/browser.js @@ -34,10 +34,10 @@ }, data => { fileBrowserDialog.empty(); const firstValue = data[0]; - let i = 0; let list = null; let link = null; - data = $.grep(data, () => i++ !== 0); + + const innerData = $.grep(data, (value, index) => index !== 0); const inputContainer = $('
'); $('').val(firstValue.currentPath).on('keypress', event_ => { @@ -52,7 +52,7 @@ const listContainer = $('
'); list = $('