1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Remove disable option. Change download wording to open.

This commit is contained in:
Brendan Dahl 2012-05-23 16:16:48 -07:00
parent e962d93946
commit ee54c0bfe4
2 changed files with 2 additions and 12 deletions

View 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,