diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-02-24 13:57:07 +0300 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2015-02-24 13:57:07 +0300 |
commit | 8b6dba36f4f1ba15f8a8a246c0abb231e8e3e6ab (patch) | |
tree | bf2707bdf21a1ce5608355e0bc8022b7e092ebcd /js | |
parent | 282a0af29e0c865a8f094aba477512a51b33a95f (diff) |
Prefix jQuery objects with $
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'js')
-rw-r--r-- | js/config.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/config.js b/js/config.js index d68965ab23..ca8eb5b2b0 100644 --- a/js/config.js +++ b/js/config.js @@ -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(); } // |