Commit a9d7f5e766907c0ed1c9f5a11a1158e1f5bde8f6
1 parent
09877669
dojo editor modified
Showing
1 changed file
with
26 additions
and
6 deletions
Show diff stats
calexium_lib/web/CXM_dojo.anubis
| @@ -365,13 +365,33 @@ public define HTML_Off_Form | @@ -365,13 +365,33 @@ public define HTML_Off_Form | ||
| 365 | content). | 365 | content). |
| 366 | 366 | ||
| 367 | 367 | ||
| 368 | -public define HTML_Off_Form | 368 | +public define HTML_In_Form |
| 369 | dojo_editor | 369 | dojo_editor |
| 370 | ( | 370 | ( |
| 371 | - List(CoreAttrs) attributes, | ||
| 372 | - HTML_Off_Form text | 371 | + List(TextAreaOption) attributes, |
| 372 | + HtmlId id, | ||
| 373 | + WebArgName name, | ||
| 374 | + String text, | ||
| 373 | )= | 375 | )= |
| 374 | - div([attr("dojoType", "dijit.Editor"), attr("style", "overflow:auto"), | ||
| 375 | - attr("extraPlugins", "['createLink','insertImage',{name:'dijit._editor.plugins.FontChoice', command: 'fontName', generic: true},'fontSize']") | ||
| 376 | - . attributes], text). | 376 | + text_area([input_attrs([ |
| 377 | + attr("dojoType", "dijit.Editor"), attr("style", "overflow:auto") . | ||
| 378 | + [attr("extraPlugins" , "['createLink','insertImage',{name:'dijit._editor.plugins.FontChoice', command: 'fontName', generic: true},'fontSize']")]]) | ||
| 379 | + . attributes], "", id, name, init(text), 0, 0). | ||
| 377 | 380 | ||
| 381 | + public define HTML_In_Form | ||
| 382 | + dojo_button | ||
| 383 | + ( | ||
| 384 | + HtmlId html_id, | ||
| 385 | + String name, | ||
| 386 | + String iconclass, | ||
| 387 | + Maybe(String) tip_msg, | ||
| 388 | + String execute, | ||
| 389 | + )= | ||
| 390 | + literal("<input id=\"realSubmitButton"+ html_id.id + "\" type=\"submit\" style=\"display:none\"> | ||
| 391 | + <button dojoType=\"dijit.form.Button\" id=\"" + html_id.id + "\" iconClass=\"" + iconclass + "\" onclick=\"dojo.byId('realSubmitButton" + html_id.id + "').click();" + execute + "\">" + name + "</button>" + | ||
| 392 | + if tip_msg is | ||
| 393 | + { | ||
| 394 | + failure then "", | ||
| 395 | + success(tip) then | ||
| 396 | + "<span dojoType=\"dijit.Tooltip\" connectId=\"" + html_id.id + "\">" + tip + "</span>" | ||
| 397 | + }). |