var hotkeys_enabled = true;
-var xmlhttp_rpc = Ajax.getTransport();
var notify_silent = false;
var last_progress_point = 0;
var async_counters_work = false;
hotkeys_enabled = true;
}
-function xmlhttp_ready(obj) {
- return obj.readyState == 4 || obj.readyState == 0 || !obj.readyState;
-}
-
function open_article_callback(transport) {
try {
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) {
try {
debug("catchup_callback2 " + transport + ", " + callback);
try {
- if (!xmlhttp_ready(xmlhttp_rpc)) {
- printLockingError();
- }
-
+
if (!getActiveArticleId()) {
alert(__("No article is selected."));
return;