diff -r 000000000000 -r 6474c204b198 toolkit/content/widgets/button.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/toolkit/content/widgets/button.xml Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,376 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + this.init(); + + + + + binding must contain an element with anonid=\"button\""; + + var menubuttonParent = this; + btn.addEventListener("mouseover", function() { + if (!this.disabled) + menubuttonParent.buttonover = true; + }, true); + btn.addEventListener("mouseout", function() { + menubuttonParent.buttonover = false; + }, true); + btn.addEventListener("mousedown", function() { + if (!this.disabled) { + menubuttonParent.buttondown = true; + document.addEventListener("mouseup", menubuttonParent, true); + } + }, true); + ]]> + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + if (event.originalTarget == this) + this.open = true; + + + if (event.originalTarget == this) + this.open = true; + + + + + + + + + + + + + + + + + + + + + + + + + + +