js: Use shorthand $() instead of $(document).ready().

This commit is contained in:
derAnfaenger 2017-10-05 16:01:50 +02:00 committed by Tim Abbott
parent 6b99022a02
commit ad5bc4b06c
3 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ function report_error(msg, stack, opts) {
// For (1) we just don't show the message if the ui
// hasn't been loaded yet. The user will probably
// get another error once it does. We can't solve
// (2) by using $(document).ready() because the
// (2) by using $(document).ready because the
// callback never gets called (I think what's going
// on here is if the exception was raised by a
// function that was called as a result of the DOM

View File

@ -228,5 +228,5 @@ var load = function () {
if (document.readyState === "complete") {
load();
} else {
$(document).ready(load);
$(load);
}

View File

@ -60,7 +60,7 @@ function update_last_full_update(end_times) {
$('#id_last_full_update').closest('.last-update').show();
}
$(document).ready(function () {
$(function () {
$('span[data-toggle="tooltip"]').tooltip({
animation: false,
placement: 'top',