From 546fb77abb99ad06543b3e8cde80e94dd3d6de1d Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 20 Jan 2014 13:07:11 +0000 Subject: [PATCH] Fix unable to use only OK button constant --- etemplate/js/et2_widget_dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_dialog.js b/etemplate/js/et2_widget_dialog.js index 2c8ad99bef..261460ad73 100644 --- a/etemplate/js/et2_widget_dialog.js +++ b/etemplate/js/et2_widget_dialog.js @@ -456,8 +456,8 @@ jQuery.extend(et2_dialog, callback: _callback||function(){}, message: _message, title: _title||egw.lang('Confirmation required'), - buttons: _buttons||et2_dialog.BUTTONS_YES_NO, - dialog_type: _type||et2_dialog.QUESTION_MESSAGE, + buttons: typeof _buttons != 'undefined' ? _buttons : et2_dialog.BUTTONS_YES_NO, + dialog_type: typeof _type != 'undefined' ? _type : et2_dialog.QUESTION_MESSAGE, icon: _icon, value: _value });