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 // For (1) we just don't show the message if the ui
// hasn't been loaded yet. The user will probably // hasn't been loaded yet. The user will probably
// get another error once it does. We can't solve // 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 // callback never gets called (I think what's going
// on here is if the exception was raised by a // on here is if the exception was raised by a
// function that was called as a result of the DOM // function that was called as a result of the DOM

View File

@@ -228,5 +228,5 @@ var load = function () {
if (document.readyState === "complete") { if (document.readyState === "complete") {
load(); load();
} else { } 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(); $('#id_last_full_update').closest('.last-update').show();
} }
$(document).ready(function () { $(function () {
$('span[data-toggle="tooltip"]').tooltip({ $('span[data-toggle="tooltip"]').tooltip({
animation: false, animation: false,
placement: 'top', placement: 'top',