We defined a two-state-button that has a context menu. We would like not to change the status of the two-state-button to right-click, just at click.
How to achieve this?
Thanks in advance
We defined a two-state-button that has a context menu. We would like not to change the status of the two-state-button to right-click, just at click.
How to achieve this?
Thanks in advance
Not nice but fixed … if u have a better id pls post it
this.obj[b._isIPad ? "ontouchstart" : "onmousedown"] = function (type) {
if (type.button!=0) return false;
if ((!b.checkEvent("onBeforeStateChange") || b.callEvent("onBeforeStateChange", [this.idd.replace(b.idPrefix, ""), this.pressed])) && c.state != !1 && b.anyUsed == "none") {
this.className = (this.pressed = !this.pressed) ? "dhx_toolbar_btn pres" : this.renderAs;
var a = this.idd.replace(b.idPrefix, "");
if (this.extAction)try {
window[this.extAction](a, this.pressed)
} catch (d) {
}
b.callEvent("onStateChange", [a, this.pressed]);
return!1
}
};