Skip to content

Commit

Permalink
Prefix jQuery objects with $
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Feb 24, 2015
1 parent 282a0af commit 8b6dba3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions js/config.js
Expand Up @@ -772,25 +772,25 @@ function updatePrefsDate()
function offerPrefsAutoimport()
{
var has_config = (window.localStorage || false) && (window.localStorage.config || false);
var cnt = $('#prefs_autoload');
if (!cnt.length || !has_config) {
var $cnt = $('#prefs_autoload');
if (!$cnt.length || !has_config) {
return;
}
cnt.find('a').click(function (e) {
$cnt.find('a').click(function (e) {
e.preventDefault();
var a = $(this);
if (a.attr('href') == '#no') {
cnt.remove();
$cnt.remove();
$.post('index.php', {
token: cnt.find('input[name=token]').val(),
token: $cnt.find('input[name=token]').val(),
prefs_autoload: 'hide'
});
return;
}
cnt.find('input[name=json]').val(window.localStorage.config);
cnt.find('form').submit();
$cnt.find('input[name=json]').val(window.localStorage.config);
$cnt.find('form').submit();
});
cnt.show();
$cnt.show();
}

//
Expand Down

0 comments on commit 8b6dba3

Please sign in to comment.