Commit 089088a0cb1a73097a5e460e08f146421354a547
1 parent
0cd6149f
webmail toaster duration added
Showing
1 changed file
with
10 additions
and
3 deletions
Show diff stats
calexium_lib/web/CXM_dojo.anubis
| @@ -531,10 +531,17 @@ public define HTML_Off_Form | @@ -531,10 +531,17 @@ public define HTML_Off_Form | ||
| 531 | HtmlId html_id, | 531 | HtmlId html_id, |
| 532 | String message_topic, | 532 | String message_topic, |
| 533 | Position_Direction position_direction, | 533 | Position_Direction position_direction, |
| 534 | - Bool separator | 534 | + Bool separator, |
| 535 | + Maybe(Int) duration | ||
| 535 | )= | 536 | )= |
| 536 | - div(append(if separator then [attr("separator","<hr>")] | ||
| 537 | - else [], [attr("dojoType", "dojox.widget.Toaster"), attr("messageTopic", message_topic), | 537 | + div(append(append(if separator then [attr("separator","<hr>")] |
| 538 | + else [], | ||
| 539 | + if duration is | ||
| 540 | + { | ||
| 541 | + failure then [], | ||
| 542 | + success(dur) then [attr("duration", abs_to_decimal(dur))] | ||
| 543 | + }), | ||
| 544 | + [attr("dojoType", "dojox.widget.Toaster"), attr("messageTopic", message_topic), | ||
| 538 | attr("positionDirection", pos_dir_to_str(position_direction)), id(html_id.id) | 545 | attr("positionDirection", pos_dir_to_str(position_direction)), id(html_id.id) |
| 539 | . attributes ]), | 546 | . attributes ]), |
| 540 | literal("")). | 547 | literal("")). |