Activate "Set Up Syncing" button on context-menu paste or drag and drop
This commit is contained in:
parent
196e45c849
commit
33bf3b2e12
|
@ -81,7 +81,7 @@ Zotero_Preferences.Sync = {
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
credentialsKeyPress: function (event) {
|
credentialsChange: function (event) {
|
||||||
var username = document.getElementById('sync-username-textbox');
|
var username = document.getElementById('sync-username-textbox');
|
||||||
var password = document.getElementById('sync-password');
|
var password = document.getElementById('sync-password');
|
||||||
|
|
||||||
|
@ -95,9 +95,12 @@ Zotero_Preferences.Sync = {
|
||||||
syncAuthButton.setAttribute('disabled', 'false');
|
syncAuthButton.setAttribute('disabled', 'false');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
credentialsKeyPress: function (event) {
|
||||||
if (event.keyCode == 13) {
|
if (event.keyCode == 13) {
|
||||||
Zotero_Preferences.Sync.linkAccount(event);
|
this.linkAccount(event);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -68,12 +68,16 @@
|
||||||
<textbox id="sync-username-textbox"
|
<textbox id="sync-username-textbox"
|
||||||
preference="pref-sync-username"
|
preference="pref-sync-username"
|
||||||
onblur="Zotero_Preferences.Sync.trimUsername()"
|
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>
|
||||||
<row>
|
<row>
|
||||||
<label value="&zotero.preferences.sync.password;"/>
|
<label value="&zotero.preferences.sync.password;"/>
|
||||||
<textbox id="sync-password" type="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>
|
||||||
<row>
|
<row>
|
||||||
<box/>
|
<box/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user