]> git.parisson.com Git - pdf.js.git/commitdiff
Remove disable option. Change download wording to open.
authorBrendan Dahl <brendan.dahl@gmail.com>
Wed, 23 May 2012 23:16:48 +0000 (16:16 -0700)
committerBrendan Dahl <brendan.dahl@gmail.com>
Wed, 23 May 2012 23:16:48 +0000 (16:16 -0700)
extensions/firefox/components/PdfStreamConverter.js
l10n/en-US/chrome.properties

index ced6b104846744f977898a3339fd4953d7ae2a9d..d4a375ccce8c287f19c7b9657258a482763794d9 100644 (file)
@@ -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,
index f0f4bcb8841cf892bbc76bb5c816a7ec2426bdb2..26e46bac25761ac835e16d72f5b5e04c1eef76d6 100644 (file)
@@ -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