From f96b5dc7a61c52d6ad408fa2943cec10897cd3f7 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Tue, 21 Jun 2016 09:54:00 +0900 Subject: [PATCH] Tiny fixes to assuage linters --- user.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/user.js b/user.js index aac4b53..92c523d 100644 --- a/user.js +++ b/user.js @@ -54,7 +54,7 @@ var easycopy = { $('#ezc-settings-save').click(easycopy.saveSettings); $('nav .ten.columns.omega').append(''); $('.ezc-settings-open').click(function(e) {e.preventDefault(); $('#ezc-settings-div').toggle('fast');}); - if(easycopy.settings['showLinkBox']) $('#ezc-settings-linkbox').prop('checked', true); + if(easycopy.settings.showLinkBox) $('#ezc-settings-linkbox').prop('checked', true); // Another div for status messages $('body').append('
This should never be seen
'); @@ -121,7 +121,7 @@ var easycopy = { { $('#ezc-textcontainer').toggle('fast'); }); - if (!easycopy.settings['showLinkBox']) $('#ezc-textcontainer').hide(); + if (!easycopy.settings.showLinkBox) $('#ezc-textcontainer').hide(); }, handleClick: function(event) @@ -178,7 +178,7 @@ var easycopy = { var linkData = ""; var password = $(data).find('#password').text(); linkData += $(data).find('#title').text() + ' [password: ' + password + ']\n'; - $(data).find('#links_mega a').each(function() { linkData += $(this).attr('href') + '\n\n' }); + $(data).find('#links_mega a').each(function() { linkData += $(this).attr('href') + '\n\n'; }); $('#easycopytext').val($('#easycopytext').val() + linkData); easycopy.dequeue(); }, @@ -235,13 +235,13 @@ var easycopy = { for (var i = 0; i < settings.length; i++) { easycopy.settings[settings[i]] = GM_getValue(settings[i]); - }; + } }, runFirstTime: function() { - console.log('Running initial setup...') + console.log('Running initial setup...'); console.log('Defaulting link box display to true'); GM_setValue('showLinkBox', true); } -} \ No newline at end of file +}; \ No newline at end of file