Bug 217916 - advanced options: expanding/collapsing fun patch by pike@pikey.me.uk, r=me

This commit is contained in:
mconnor%myrealbox.com 2004-05-07 00:52:53 +00:00
parent 82d373fc6d
commit 16bad948b6

View File

@ -36,7 +36,7 @@
if (val)
this.setAttribute("open", "true");
else
this.removeAttribute("open");
this.setAttribute("open", "false");
return val;
]]>
</setter>
@ -52,7 +52,10 @@
switch (button) {
case "disclosure":
case "label":
this.open = !this.open;
if (this.open == "true")
this.open = false;
else
this.open = true;
break;
case "clear-button":
var event = document.createEvent("Events");