Change get_updates_params.reload_pending to reload.is_pending() as the former no longer exists

(imported from commit fdc59a27230cb49adee2f5444e440aaa84103e5e)
This commit is contained in:
Zev Benjamin
2012-12-11 15:44:04 -05:00
parent 2f1f1fa6be
commit 695d9a4dc6

View File

@@ -127,7 +127,7 @@ function send_message() {
$("#compose-send-button").removeAttr('disabled');
},
error: function (xhr, error_type) {
if (error_type !== 'timeout' && get_updates_params.reload_pending) {
if (error_type !== 'timeout' && reload.is_pending()) {
// The error might be due to the server changing
reload.initiate({immediate: true, send_after_reload: true});
return;