diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index a995752fb..9e6e1c972 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -55,7 +55,8 @@ define([ var CHECKPOINT_INTERVAL = 100; var DISPLAY_RESTORE_BUTTON = false; var NEW_VERSION = 2; - var PENDING_TIMEOUT = 30000; // XXX it feels like maybe this should be shorter + var PENDING_TIMEOUT = 30000; + var READ_ONLY_REFRESH_DATA_DELAY = 15000; var debug = function (x) { if (!window.CP_DEV_MODE) { return; } @@ -558,8 +559,6 @@ define([ xhr.send(null); }; -Messages.oo_refresh = "Refresh"; // XXX read-only corner popup when receiving remote updates -Messages.oo_refreshText = "out of date"; // XXX read-only corner popup when receiving remote updates var refreshReadOnly = function () { var cancel = h('button.cp-corner-cancel', Messages.cancel); var reload = h('button.cp-corner-primary', [ @@ -619,8 +618,8 @@ Messages.oo_refreshText = "out of date"; // XXX read-only corner popup when rece APP.refreshPopup = true; // Don't "spam" the user instantly and no more than - // 1 popup every 30s - setTimeout(refreshReadOnly, 30000); + // 1 popup every 15s + setTimeout(refreshReadOnly, READ_ONLY_REFRESH_DATA_DELAY); return; } ooChannel.send(obj.data.msg); diff --git a/www/support/ui.js b/www/support/ui.js index 2be5cff1e..c17bd9f5b 100644 --- a/www/support/ui.js +++ b/www/support/ui.js @@ -103,8 +103,6 @@ define([ return true; }; -Messages.support_category = "Category"; // XXX - var makeCategoryDropdown = function (ctx, container, onChange, all) { var categories = ['account', 'data', 'bug', 'other']; if (all) { categories.push('all'); }