www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 33bf3b2e1203d6ecfd571d5b2e20f615260d6b26
parent 196e45c849445db5ef491e1ed50d2fddb971cbf0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 27 Oct 2017 20:22:33 -0400

Activate "Set Up Syncing" button on context-menu paste or drag and drop

Diffstat:
Mchrome/content/zotero/preferences/preferences_sync.js | 9++++++---
Mchrome/content/zotero/preferences/preferences_sync.xul | 8++++++--
2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/chrome/content/zotero/preferences/preferences_sync.js b/chrome/content/zotero/preferences/preferences_sync.js @@ -81,7 +81,7 @@ Zotero_Preferences.Sync = { }, - credentialsKeyPress: function (event) { + credentialsChange: function (event) { var username = document.getElementById('sync-username-textbox'); var password = document.getElementById('sync-password'); @@ -95,9 +95,12 @@ Zotero_Preferences.Sync = { syncAuthButton.setAttribute('disabled', 'false'); } }); - + }, + + + credentialsKeyPress: function (event) { if (event.keyCode == 13) { - Zotero_Preferences.Sync.linkAccount(event); + this.linkAccount(event); event.preventDefault(); } }, diff --git a/chrome/content/zotero/preferences/preferences_sync.xul b/chrome/content/zotero/preferences/preferences_sync.xul @@ -68,12 +68,16 @@ <textbox id="sync-username-textbox" preference="pref-sync-username" onblur="Zotero_Preferences.Sync.trimUsername()" - onkeypress="Zotero_Preferences.Sync.credentialsKeyPress(event);"/> + oninput="Zotero_Preferences.Sync.credentialsChange(event)" + onchange="Zotero_Preferences.Sync.credentialsChange(event)" + onkeypress="Zotero_Preferences.Sync.credentialsKeyPress(event)"/> </row> <row> <label value="&zotero.preferences.sync.password;"/> <textbox id="sync-password" type="password" - onkeypress="Zotero_Preferences.Sync.credentialsKeyPress(event);"/> + oninput="Zotero_Preferences.Sync.credentialsChange(event)" + onchange="Zotero_Preferences.Sync.credentialsChange(event)" + onkeypress="Zotero_Preferences.Sync.credentialsKeyPress(event)"/> </row> <row> <box/>