Remove disable option. Change download wording to open.
This commit is contained in:
parent
e962d93946
commit
ee54c0bfe4
@ -176,20 +176,11 @@ ChromeActions.prototype = {
|
|||||||
var win = Services.wm.getMostRecentWindow('navigator:browser');
|
var win = Services.wm.getMostRecentWindow('navigator:browser');
|
||||||
var notificationBox = win.gBrowser.getNotificationBox();
|
var notificationBox = win.gBrowser.getNotificationBox();
|
||||||
var buttons = [{
|
var buttons = [{
|
||||||
label: getLocalizedString(strings, 'download_document'),
|
label: getLocalizedString(strings, 'open_with_different_viewer'),
|
||||||
accessKey: null,
|
accessKey: null,
|
||||||
callback: function() {
|
callback: function() {
|
||||||
self.download(url);
|
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.appendNotification(message, 'pdfjs-fallback', null,
|
||||||
notificationBox.PRIORITY_WARNING_LOW,
|
notificationBox.PRIORITY_WARNING_LOW,
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
unsupported_feature=An unsupported feature was detected in this PDF document.
|
unsupported_feature=An unsupported feature was detected in this PDF document.
|
||||||
download_document=Download Document
|
open_with_different_viewer=Open With Different Viewer
|
||||||
disable_viewer=Disable Mozilla PDF Viewer
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user