mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 23:19:10 +00:00
js: Use shorthand $() instead of $(document).ready().
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -228,5 +228,5 @@ var load = function () {
|
|||||||
if (document.readyState === "complete") {
|
if (document.readyState === "complete") {
|
||||||
load();
|
load();
|
||||||
} else {
|
} else {
|
||||||
$(document).ready(load);
|
$(load);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user