From cd55aebbc0c5a161f1fade2e15773cff1a0df391 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 13 Mar 2019 02:45:31 -0400 Subject: [PATCH] Fix detection of WebDAV settings on Windows and Linux Fixes #1291, hopefully for real this time --- chrome/content/zotero/preferences/preferences_sync.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrome/content/zotero/preferences/preferences_sync.js b/chrome/content/zotero/preferences/preferences_sync.js index 1272e75690..b1dcf9fcca 100644 --- a/chrome/content/zotero/preferences/preferences_sync.js +++ b/chrome/content/zotero/preferences/preferences_sync.js @@ -493,6 +493,11 @@ Zotero_Preferences.Sync = { var usernameField = document.getElementById("storage-username"); var passwordField = document.getElementById("storage-password"); + // These don't get set until window close on Windows/Linux (no instantApply), + // so set them explicitly when verifying + Zotero.Prefs.set('sync.storage.url', urlField.value); + Zotero.Prefs.set('sync.storage.username', usernameField.value); + verifyButton.hidden = true; abortButton.hidden = false; progressMeter.hidden = false;