code cleanup (remove old xmlhttp references)
This commit is contained in:
parent
45a15f785a
commit
49fd1e944f
|
@ -1,5 +1,4 @@
|
||||||
var hotkeys_enabled = true;
|
var hotkeys_enabled = true;
|
||||||
var xmlhttp_rpc = Ajax.getTransport();
|
|
||||||
var notify_silent = false;
|
var notify_silent = false;
|
||||||
var last_progress_point = 0;
|
var last_progress_point = 0;
|
||||||
var async_counters_work = false;
|
var async_counters_work = false;
|
||||||
|
@ -83,10 +82,6 @@ function enableHotkeys() {
|
||||||
hotkeys_enabled = true;
|
hotkeys_enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function xmlhttp_ready(obj) {
|
|
||||||
return obj.readyState == 4 || obj.readyState == 0 || !obj.readyState;
|
|
||||||
}
|
|
||||||
|
|
||||||
function open_article_callback(transport) {
|
function open_article_callback(transport) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|
18
viewfeed.js
18
viewfeed.js
|
@ -15,21 +15,6 @@ var post_under_pointer = false;
|
||||||
|
|
||||||
var last_requested_article = false;
|
var last_requested_article = false;
|
||||||
|
|
||||||
function catchup_callback() {
|
|
||||||
if (xmlhttp_rpc.readyState == 4) {
|
|
||||||
try {
|
|
||||||
debug("catchup_callback");
|
|
||||||
notify("");
|
|
||||||
all_counters_callback2(xmlhttp_rpc);
|
|
||||||
if (_catchup_callback_func) {
|
|
||||||
setTimeout(_catchup_callback_func, 10);
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
exception_error("catchup_callback", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function catchup_callback2(transport, callback) {
|
function catchup_callback2(transport, callback) {
|
||||||
try {
|
try {
|
||||||
debug("catchup_callback2 " + transport + ", " + callback);
|
debug("catchup_callback2 " + transport + ", " + callback);
|
||||||
|
@ -1696,9 +1681,6 @@ function catchupRelativeToArticle(below) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (!xmlhttp_ready(xmlhttp_rpc)) {
|
|
||||||
printLockingError();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!getActiveArticleId()) {
|
if (!getActiveArticleId()) {
|
||||||
alert(__("No article is selected."));
|
alert(__("No article is selected."));
|
||||||
|
|
Loading…
Reference in New Issue