- don't try to open non-native attachments using Fx
- don't try to get non-existent strings for non-existent buttons
This commit is contained in:
parent
5edcc84cf9
commit
6c7c8a66c0
2 changed files with 1 additions and 9 deletions
|
@ -187,13 +187,6 @@
|
||||||
// Metadata for URL's
|
// Metadata for URL's
|
||||||
if (this.item.attachmentLinkMode == Zotero.Attachments.LINK_MODE_LINKED_URL
|
if (this.item.attachmentLinkMode == Zotero.Attachments.LINK_MODE_LINKED_URL
|
||||||
|| isImportedURL) {
|
|| isImportedURL) {
|
||||||
// "View Page"/"View Snapshot" label
|
|
||||||
if (isImportedURL) {
|
|
||||||
var str = Zotero.getString('pane.item.attachments.view.snapshot');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
var str = Zotero.getString('pane.item.attachments.view.link');
|
|
||||||
}
|
|
||||||
|
|
||||||
// URL
|
// URL
|
||||||
if (this.displayURL) {
|
if (this.displayURL) {
|
||||||
|
@ -229,7 +222,6 @@
|
||||||
}
|
}
|
||||||
// Metadata for files
|
// Metadata for files
|
||||||
else {
|
else {
|
||||||
var str = Zotero.getString('pane.item.attachments.view.file');
|
|
||||||
urlField.hidden = true;
|
urlField.hidden = true;
|
||||||
accessed.hidden = true;
|
accessed.hidden = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3073,7 +3073,7 @@ var ZoteroPane = new function()
|
||||||
(!Zotero.MIME.hasInternalHandler(mimeType, ext) || Zotero.Prefs.get('launchNonNativeFiles')));
|
(!Zotero.MIME.hasInternalHandler(mimeType, ext) || Zotero.Prefs.get('launchNonNativeFiles')));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!forceExternalViewer) {
|
if (!externalViewer) {
|
||||||
var url = 'zotero://attachment/' + itemID + '/';
|
var url = 'zotero://attachment/' + itemID + '/';
|
||||||
this.loadURI(url, event, { attachmentID: itemID});
|
this.loadURI(url, event, { attachmentID: itemID});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue