diff --git a/etemplate/js/et2_widget_button.js b/etemplate/js/et2_widget_button.js index aea1095df9..cd91af3d68 100644 --- a/etemplate/js/et2_widget_button.js +++ b/etemplate/js/et2_widget_button.js @@ -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; }