mirror of https://github.com/zulip/zulip.git
js: Use shorthand $() instead of $(document).ready().
This commit is contained in:
parent
6b99022a02
commit
ad5bc4b06c
|
@ -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
|
||||
|
|
|
@ -228,5 +228,5 @@ var load = function () {
|
|||
if (document.readyState === "complete") {
|
||||
load();
|
||||
} else {
|
||||
$(document).ready(load);
|
||||
$(load);
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue