зеркало из https://github.com/mozilla/gecko-dev.git
Bug 420595 - Change the acceptButton icon to a "save" one when there is no choice. r=sdwilsh
Bug 420595 - "you have chosen to open" dialog uses wrong icon When we present the basic choice for actions in the download helper window, the accept button has the only effect of saving; thus we should change the icon from "OK" to "Save".
This commit is contained in:
Родитель
d9373d105c
Коммит
d41071f9a0
|
@ -443,8 +443,13 @@ nsUnknownContentTypeDialog.prototype = {
|
|||
this.dialogElement("normalBox").collapsed = true;
|
||||
// show basic choice
|
||||
this.dialogElement("basicBox").collapsed = false;
|
||||
// change button labels
|
||||
this.mDialog.document.documentElement.getButton("accept").label = this.dialogElement("strings").getString("unknownAccept.label");
|
||||
// change button labels and icons; use "save" icon for the accept
|
||||
// button since it's the only action possible
|
||||
let acceptButton = this.mDialog.document.documentElement
|
||||
.getButton("accept");
|
||||
acceptButton.label = this.dialogElement("strings")
|
||||
.getString("unknownAccept.label");
|
||||
acceptButton.setAttribute("icon", "save");
|
||||
this.mDialog.document.documentElement.getButton("cancel").label = this.dialogElement("strings").getString("unknownCancel.label");
|
||||
// hide other handler
|
||||
this.dialogElement("openHandler").collapsed = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче