Fix missing onclick

This commit is contained in:
Nathan Gray 2011-08-31 00:03:50 +00:00
parent ea7ad6318d
commit 86a356314b

View File

@ -56,9 +56,9 @@ var et2_button = et2_baseWidget.extend(et2_IInput, {
click: function() {
// Execute the JS code connected to the event handler
if (this.onclick)
if (this.options.onclick)
{
if (!this.onclick())
if (!this.options.onclick())
return false;
}