From f7765be35c3cd9bf6eb6a3c27db22ef2f866eb60 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 26 Dec 2010 17:31:15 +0000 Subject: [PATCH] Fix Stop button for WebDAV Verify Server --- chrome/content/zotero/xpcom/storage.js | 2 +- chrome/content/zotero/xpcom/storage/session.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index be66cdc8b5..54be23cdc4 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -804,7 +804,7 @@ Zotero.Sync.Storage = new function () { } ); _session.initFromPrefs(); - _session.checkServer(callback); + return _session.checkServer(callback); } diff --git a/chrome/content/zotero/xpcom/storage/session.js b/chrome/content/zotero/xpcom/storage/session.js index 93728b310c..464a49806a 100644 --- a/chrome/content/zotero/xpcom/storage/session.js +++ b/chrome/content/zotero/xpcom/storage/session.js @@ -101,7 +101,7 @@ Zotero.Sync.Storage.Session.prototype.__defineSetter__('password', function (val }); -Zotero.Sync.Storage.Session.prototype.initFromPrefs = function () { +Zotero.Sync.Storage.Session.prototype.init = function () { try { return this._session.init(); } @@ -157,7 +157,7 @@ Zotero.Sync.Storage.Session.prototype.setLastSyncTime = function (callback, useL Zotero.Sync.Storage.Session.prototype.checkServer = function (callback) { try { - this._session.checkServer(callback); + return this._session.checkServer(callback); } catch (e) { this.onError(e);