Kill progress indicator and buttons in add by identifier box. We might want to replace the progress indicator with something else, but the buttons are unnecessary.
This commit is contained in:
parent
f701dd724e
commit
88c6eae730
|
@ -32,12 +32,6 @@ const Zotero_Lookup = new function () {
|
|||
* Performs a lookup by DOI, PMID, or ISBN
|
||||
*/
|
||||
this.accept = function() {
|
||||
var progressElement = document.getElementById("zotero-lookup-progress");
|
||||
progressElement.setAttribute("status", "animate");
|
||||
|
||||
var acceptElement = document.getElementById("zotero-lookup-accept-button");
|
||||
acceptElement.disabled = true;
|
||||
|
||||
var identifierElement = document.getElementById("zotero-lookup-textbox");
|
||||
var identifier = identifierElement.value;
|
||||
|
||||
|
@ -67,9 +61,6 @@ const Zotero_Lookup = new function () {
|
|||
if(success) {
|
||||
document.getElementById("zotero-lookup-panel").hidePopup();
|
||||
} else {
|
||||
acceptElement.disabled = undefined;
|
||||
progressElement.removeAttribute("status");
|
||||
|
||||
var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
|
||||
.getService(Components.interfaces.nsIPromptService);
|
||||
prompts.alert(window, Zotero.getString("lookup.failure.title"),
|
||||
|
@ -118,9 +109,6 @@ const Zotero_Lookup = new function () {
|
|||
* Cancels the popup and resets fields
|
||||
*/
|
||||
this.onHidden = function() {
|
||||
var progressElement = document.getElementById("zotero-lookup-progress");
|
||||
if(progressElement.hasAttribute("status")) progressElement.removeAttribute("status");
|
||||
document.getElementById("zotero-lookup-accept-button").disabled = undefined;
|
||||
document.getElementById("zotero-lookup-textbox").value = "";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,16 +146,6 @@
|
|||
<vbox>
|
||||
<description>&zotero.lookup.description;</description>
|
||||
<textbox id="zotero-lookup-textbox" style="margin: 2px 0 2px 0" onkeypress="return Zotero_Lookup.onKeyPress(event)" flex="1"/>
|
||||
<hbox>
|
||||
<toolbarbutton class="zotero-small-progress-indicator" id="zotero-lookup-progress"/>
|
||||
<spacer flex="1"/>
|
||||
<button id="zotero-lookup-cancel-button" style="list-style-image: none"
|
||||
class="editBookmarkPanelBottomButton" label="&cancelButton.label;"
|
||||
oncommand="document.getElementById('zotero-lookup-panel').hidePopup()"/>
|
||||
<button id="zotero-lookup-accept-button" style="list-style-image: none; margin-right: 0"
|
||||
class="editBookmarkPanelBottomButton" label="&okButton.label;"
|
||||
oncommand="Zotero_Lookup.accept()"/>
|
||||
</hbox>
|
||||
</vbox>
|
||||
</panel>
|
||||
</toolbarbutton>
|
||||
|
|
Loading…
Reference in New Issue
Block a user