Commit 9ebdcfa0925b83d799e63881c67de766c06024ff
1 parent
92613c96
dojo editor is now HTML_Off_Form
Showing
1 changed file
with
21 additions
and
41 deletions
Show diff stats
calexium_lib/web/CXM_dojo.anubis
| @@ -429,24 +429,14 @@ public define HTML_Off_Form | @@ -429,24 +429,14 @@ public define HTML_Off_Form | ||
| 429 | dojo_button | 429 | dojo_button |
| 430 | ( | 430 | ( |
| 431 | HtmlId html_id, | 431 | HtmlId html_id, |
| 432 | - Maybe(String) class, | 432 | +// Maybe(String) class, |
| 433 | String name, | 433 | String name, |
| 434 | - Maybe(String) iconclass, | 434 | + String iconclass, |
| 435 | Maybe(String) tip_msg, | 435 | Maybe(String) tip_msg, |
| 436 | String execute, | 436 | String execute, |
| 437 | )= | 437 | )= |
| 438 | literal(" | 438 | literal(" |
| 439 | - <button dojoType=\"dijit.form.Button\" id=\"" + html_id.id + "\"" + | ||
| 440 | - if class is | ||
| 441 | - { | ||
| 442 | - failure then "", | ||
| 443 | - success(class_name) then " class=\"" + class_name + "\"" | ||
| 444 | - } + | ||
| 445 | - if iconclass is | ||
| 446 | - { | ||
| 447 | - failure then "", | ||
| 448 | - success(iconclass_name) then " iconClass=\"" + iconclass_name + "\"" | ||
| 449 | - } + ">" | 439 | + <button dojoType=\"dijit.form.Button\" id=\"" + html_id.id + "\" iconClass=\"" + iconclass + "\" >" |
| 450 | + name | 440 | + name |
| 451 | + "<script type=\"dojo/method\" event=\"onClick\">" | 441 | + "<script type=\"dojo/method\" event=\"onClick\">" |
| 452 | + execute | 442 | + execute |
| @@ -460,38 +450,28 @@ public define HTML_Off_Form | @@ -460,38 +450,28 @@ public define HTML_Off_Form | ||
| 460 | }). | 450 | }). |
| 461 | 451 | ||
| 462 | public define HTML_In_Form | 452 | public define HTML_In_Form |
| 463 | - dojo_button | 453 | + dojo_button |
| 464 | ( | 454 | ( |
| 465 | HtmlId html_id, | 455 | HtmlId html_id, |
| 466 | - Maybe(String) class, | 456 | +// Maybe(String) class, |
| 467 | String name, | 457 | String name, |
| 468 | - Maybe(String) iconclass, | 458 | + String iconclass, |
| 469 | Maybe(String) tip_msg, | 459 | Maybe(String) tip_msg, |
| 470 | String execute, | 460 | String execute, |
| 471 | )= | 461 | )= |
| 472 | - literal(" | ||
| 473 | - <button dojoType=\"dijit.form.Button\" id=\"" + html_id.id + "\"" + | ||
| 474 | - if class is | ||
| 475 | - { | ||
| 476 | - failure then "", | ||
| 477 | - success(class_name) then " class=\"" + class_name + "\"" | ||
| 478 | - } + | ||
| 479 | - if iconclass is | ||
| 480 | - { | ||
| 481 | - failure then "", | ||
| 482 | - success(iconclass_name) then " iconClass=\"" + iconclass_name + "\"" | ||
| 483 | - } + ">" | ||
| 484 | - + name | ||
| 485 | - + "<script type=\"dojo/method\" event=\"onClick\">" | ||
| 486 | - + execute | ||
| 487 | - + "</script>" | ||
| 488 | - + "</button>" + | ||
| 489 | - if tip_msg is | ||
| 490 | - { | ||
| 491 | - failure then "", | ||
| 492 | - success(tip) then | ||
| 493 | - "<span dojoType=\"dijit.Tooltip\" connectId=\"" + html_id.id + "\">" + tip + "</span>" | ||
| 494 | - }). | 462 | + literal(" |
| 463 | + <button dojoType=\"dijit.form.Button\" id=\"" + html_id.id + "\" iconClass=\"" + iconclass + "\" >" | ||
| 464 | + + name | ||
| 465 | + + "<script type=\"dojo/method\" event=\"onClick\">" | ||
| 466 | + + execute | ||
| 467 | + + "</script>" | ||
| 468 | + + "</button>" + | ||
| 469 | + if tip_msg is | ||
| 470 | + { | ||
| 471 | + failure then "", | ||
| 472 | + success(tip) then | ||
| 473 | + "<span dojoType=\"dijit.Tooltip\" connectId=\"" + html_id.id + "\">" + tip + "</span>" | ||
| 474 | + }). | ||
| 495 | 475 | ||
| 496 | 476 | ||
| 497 | public define HTML_Off_Form | 477 | public define HTML_Off_Form |
| @@ -515,13 +495,13 @@ public define HTML_In_Form | @@ -515,13 +495,13 @@ public define HTML_In_Form | ||
| 515 | div([attr("dojoType", "dijit.Declaration"), attr("widgetClass", name) . attributes ], | 495 | div([attr("dojoType", "dijit.Declaration"), attr("widgetClass", name) . attributes ], |
| 516 | content). | 496 | content). |
| 517 | 497 | ||
| 518 | -public define HTML_In_Form | 498 | +public define HTML_Off_Form |
| 519 | dojo_editor | 499 | dojo_editor |
| 520 | ( | 500 | ( |
| 521 | List(CoreAttrs) attributes, | 501 | List(CoreAttrs) attributes, |
| 522 | HtmlId html_id, | 502 | HtmlId html_id, |
| 523 | WebArgName input_name, | 503 | WebArgName input_name, |
| 524 | - HTML_In_Form text, | 504 | + HTML_Off_Form text, |
| 525 | )= | 505 | )= |
| 526 | div([id(html_id.id), attr("name", input_name.name), attr("dojoType", "dijit.Editor") | 506 | div([id(html_id.id), attr("name", input_name.name), attr("dojoType", "dijit.Editor") |
| 527 | ,attr("extraPlugins", "['|', 'foreColor','hiliteColor',{name:'dojox.editor.plugins.FontChoice', command:'fontName', generic:true},'fontSize','formatBlock','|','createLink','insertImage']") | 507 | ,attr("extraPlugins", "['|', 'foreColor','hiliteColor',{name:'dojox.editor.plugins.FontChoice', command:'fontName', generic:true},'fontSize','formatBlock','|','createLink','insertImage']") |