зеркало из https://github.com/mozilla/pjs.git
Bug 217916 - advanced options: expanding/collapsing fun patch by pike@pikey.me.uk, r=me
This commit is contained in:
Родитель
b6068bdc40
Коммит
632baa16b3
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче