From c279aef6cdc30805fac8c2b8579fc97344d3b71e Mon Sep 17 00:00:00 2001 From: aurimasv <aurimas.dev@gmail.com> Date: Sun, 10 Feb 2013 03:17:12 -0600 Subject: [PATCH] Store username and url inside correct preference keys --- chrome/content/zotero/preferences/preferences.xul | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/preferences/preferences.xul b/chrome/content/zotero/preferences/preferences.xul index b96bb64a21..8b7d31bd84 100644 --- a/chrome/content/zotero/preferences/preferences.xul +++ b/chrome/content/zotero/preferences/preferences.xul @@ -268,7 +268,7 @@ To add a new preference: <textbox id="storage-url" flex="1" preference="pref-storage-url" onkeypress="if (Zotero.isMac && event.keyCode == 13) { this.blur(); setTimeout(verifyStorageServer, 1); }" - onchange="unverifyStorageServer(); this.value = this.value.replace(/(^https?:\/\/|\/zotero\/?$|\/$)/g, ''); Zotero.Prefs.set('extensions.zotero.sync.storage.url', this.value)"/> + onchange="unverifyStorageServer(); this.value = this.value.replace(/(^https?:\/\/|\/zotero\/?$|\/$)/g, ''); Zotero.Prefs.set('sync.storage.url', this.value)"/> <label value="/zotero/"/> </hbox> </row> @@ -278,7 +278,7 @@ To add a new preference: <textbox id="storage-username" preference="pref-storage-username" onkeypress="if (Zotero.isMac && event.keyCode == 13) { this.blur(); setTimeout(verifyStorageServer, 1); }" - onchange="unverifyStorageServer(); Zotero.Prefs.set('extensions.zotero.sync.storage.username', this.value); var pass = document.getElementById('storage-password'); if (pass.value) { Zotero.Sync.Storage.Session.WebDAV.prototype.password = pass.value; }"/> + onchange="unverifyStorageServer(); Zotero.Prefs.set('sync.storage.username', this.value); var pass = document.getElementById('storage-password'); if (pass.value) { Zotero.Sync.Storage.Session.WebDAV.prototype.password = pass.value; }"/> </hbox> </row> <row>