- 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:
Simon Kornblith 2011-02-12 20:40:46 +00:00
parent 5edcc84cf9
commit 6c7c8a66c0
2 changed files with 1 additions and 9 deletions

View file

@ -187,13 +187,6 @@
// Metadata for URL's
if (this.item.attachmentLinkMode == Zotero.Attachments.LINK_MODE_LINKED_URL
|| 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
if (this.displayURL) {
@ -229,7 +222,6 @@
}
// Metadata for files
else {
var str = Zotero.getString('pane.item.attachments.view.file');
urlField.hidden = true;
accessed.hidden = true;
}

View file

@ -3073,7 +3073,7 @@ var ZoteroPane = new function()
(!Zotero.MIME.hasInternalHandler(mimeType, ext) || Zotero.Prefs.get('launchNonNativeFiles')));
}
if (!forceExternalViewer) {
if (!externalViewer) {
var url = 'zotero://attachment/' + itemID + '/';
this.loadURI(url, event, { attachmentID: itemID});
}