some simplifications on how we hide the unrequested buttons

git-svn-id: svn://10.0.0.236/trunk@149342 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
chanial%noos.fr 2003-11-15 07:31:01 +00:00
parent 575eac7d96
commit b864945683

View File

@ -129,7 +129,7 @@
<constructor>
<![CDATA[
this._configureButtons(this.getAttribute("buttons"));
this._configureButtons(this.buttons);
// listen for when window is closed via native close buttons
window.addEventListener("close", this._closeHandler, false);
@ -228,12 +228,8 @@
shown[list[i].replace(/ /g, "")] = true;
// hide/show the buttons we want
for (dlgtype in shown) {
if (shown[dlgtype])
buttons[dlgtype].hidden = false;
else
buttons[dlgtype].hidden = true;
}
for (dlgtype in buttons)
buttons[dlgtype].hidden = !shown[dlgtype];
}
]]>
</body>