From ee54c0bfe4c80faa99f09efeb00f072a7e3b3492 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Wed, 23 May 2012 16:16:48 -0700 Subject: [PATCH] Remove disable option. Change download wording to open. --- extensions/firefox/components/PdfStreamConverter.js | 11 +---------- l10n/en-US/chrome.properties | 3 +-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/extensions/firefox/components/PdfStreamConverter.js b/extensions/firefox/components/PdfStreamConverter.js index ced6b1048..d4a375ccc 100644 --- a/extensions/firefox/components/PdfStreamConverter.js +++ b/extensions/firefox/components/PdfStreamConverter.js @@ -176,20 +176,11 @@ ChromeActions.prototype = { var win = Services.wm.getMostRecentWindow('navigator:browser'); var notificationBox = win.gBrowser.getNotificationBox(); var buttons = [{ - label: getLocalizedString(strings, 'download_document'), + label: getLocalizedString(strings, 'open_with_different_viewer'), accessKey: null, callback: function() { self.download(url); } - }, { - label: getLocalizedString(strings, 'disable_viewer'), - accessKey: null, - callback: function() { - AddonManager.getAddonByID(EXT_ID, function(aAddon) { - aAddon.userDisabled = true; - win.gBrowser.contentWindow.location.reload(); - }); - } }]; notificationBox.appendNotification(message, 'pdfjs-fallback', null, notificationBox.PRIORITY_WARNING_LOW, diff --git a/l10n/en-US/chrome.properties b/l10n/en-US/chrome.properties index f0f4bcb88..26e46bac2 100644 --- a/l10n/en-US/chrome.properties +++ b/l10n/en-US/chrome.properties @@ -1,3 +1,2 @@ unsupported_feature=An unsupported feature was detected in this PDF document. -download_document=Download Document -disable_viewer=Disable Mozilla PDF Viewer +open_with_different_viewer=Open With Different Viewer