Commit bb62e2a6959f5889e2a6a40452db18d3b55eaaa7

Authored by Steve MARECHAL
1 parent b49a8144

dojo dialog without button added

Showing 1 changed file with 23 additions and 4 deletions   Show diff stats
calexium_lib/web/CXM_dojo.anubis
@@ -68,16 +68,16 @@ public define HTML_Off_Form @@ -68,16 +68,16 @@ public define HTML_Off_Form
68 . 68 .
69 69
70 public define HTML_Off_Form 70 public define HTML_Off_Form
71 - dojo_dialog 71 + dijit_dialog
72 ( 72 (
73 String name, 73 String name,
74 String dialog_id, 74 String dialog_id,
75 String execute, 75 String execute,
76 - Bool file 76 + Bool file,
  77 + String ok_label
77 ) 78 )
78 = 79 =
79 sequence[ 80 sequence[
80 - dojo_button(name,"dijit.byId('"+dialog_id+"').show()", dialog_id + "_button"),  
81 div([attr("dojoType", "dijit.Dialog"), id(dialog_id), title(name), attr("execute", execute)], 81 div([attr("dojoType", "dijit.Dialog"), id(dialog_id), title(name), attr("execute", execute)],
82 table([], 82 table([],
83 empty, 83 empty,
@@ -90,13 +90,32 @@ public define HTML_Off_Form @@ -90,13 +90,32 @@ public define HTML_Off_Form
90 + " name=\"name\" id=\"name_"+dialog_id+"\" />") 90 + " name=\"name\" id=\"name_"+dialog_id+"\" />")
91 91
92 )]), 92 )]),
93 - row([], [cell([columns(2), h_center], literal("<button dojoType=dijit.form.Button type=\"submit\">OK</button>"))]), 93 + row([], [cell([columns(2), h_center], literal("<button dojoType=dijit.form.Button type=\"submit\">" + ok_label + "</button>"))]),
94 ], 94 ],
95 empty)), 95 empty)),
96 literal("<br/>"), 96 literal("<br/>"),
97 ] 97 ]
98 . 98 .
99 99
  100 +public define HTML_Off_Form
  101 + dojo_dialog
  102 + (
  103 + String name,
  104 + String dialog_id,
  105 + String execute,
  106 + Bool file,
  107 + String ok_label
  108 + )
  109 + =
  110 + sequence[
  111 + dojo_button(name,"dijit.byId('"+dialog_id+"').show()", dialog_id + "_button"),
  112 + dijit_dialog(name, dialog_id, execute, file, ok_label)
  113 + ]
  114 +.
  115 +
  116 +
  117 +
  118 +
100 public type DojoGridEditor: 119 public type DojoGridEditor:
101 inputEditor, 120 inputEditor,
102 boolEditor, 121 boolEditor,