Skip to content

Commit

Permalink
Tiny fixes to assuage linters
Browse files Browse the repository at this point in the history
  • Loading branch information
nickhall committed Jun 21, 2016
1 parent cff9b13 commit f96b5dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions user.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var easycopy = {
$('#ezc-settings-save').click(easycopy.saveSettings);
$('nav .ten.columns.omega').append('<a href="#" class="ezc-settings-open"><img src="' + settingsIcon + '" style="height: 20px; width: 20px; margin-bottom: 5px;" /></a>');
$('.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('<div id="ezc-status" style="position: fixed; right: 5px; top: 5px; background-color: #191919 !important; color: white !important; padding: 5px !important;">This should never be seen</div>');
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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();
},
Expand Down Expand Up @@ -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);
}
}
};

0 comments on commit f96b5dc

Please sign in to comment.