From 89100c1c4bb4f6cb114aada71dd23df33bb83b46 Mon Sep 17 00:00:00 2001 From: Steve MARECHAL Date: Fri, 26 Sep 2008 15:58:02 +0000 Subject: [PATCH] button cancel added in dojo dialog --- calexium_lib/web/CXM_dojo.anubis | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/calexium_lib/web/CXM_dojo.anubis b/calexium_lib/web/CXM_dojo.anubis index a4528cc..f69c41b 100644 --- a/calexium_lib/web/CXM_dojo.anubis +++ b/calexium_lib/web/CXM_dojo.anubis @@ -70,11 +70,12 @@ public define HTML_Off_Form public define HTML_Off_Form dijit_dialog ( - String name, - String dialog_id, - String execute, - Bool file, - String ok_label + String name, + String dialog_id, + String execute, + Bool file, + String ok_label, + Maybe(String) cancel, ) = sequence[ @@ -90,7 +91,14 @@ public define HTML_Off_Form + " name=\"name\" id=\"name_"+dialog_id+"\" />") )]), - row([], [cell([columns(2), h_center], literal(""))]), + row([], [cell([columns(2), h_center], + literal("" + + if cancel is + { + failure then "", + success(cancel_label) then "" + } + ))]), ], empty)), literal("
"), @@ -100,16 +108,17 @@ public define HTML_Off_Form public define HTML_Off_Form dojo_dialog ( - String name, - String dialog_id, - String execute, - Bool file, - String ok_label + String name, + String dialog_id, + String execute, + Bool file, + String ok_label, + Maybe(String) cancel ) = sequence[ dojo_button(name,"dijit.byId('"+dialog_id+"').show()", dialog_id + "_button"), - dijit_dialog(name, dialog_id, execute, file, ok_label) + dijit_dialog(name, dialog_id, execute, file, ok_label, cancel) ] . -- libgit2 0.21.4