From 86a356314bb5f74430b98b2ecfaef55ffda96ed0 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 31 Aug 2011 00:03:50 +0000 Subject: [PATCH] Fix missing onclick --- etemplate/js/et2_widget_button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }