Commit 97fb134c172e80237b125651c03200a0eda215f9

Authored by totoro
1 parent f8056686

some cleanup

Showing 1 changed file with 16 additions and 18 deletions   Show diff stats
web/CXM_dojo.anubis
@@ -227,7 +227,7 @@ public define HTML_Off_Form @@ -227,7 +227,7 @@ public define HTML_Off_Form
227 success(to_do_cancel) then to_do_cancel 227 success(to_do_cancel) then to_do_cancel
228 }+ "\">" + cancel_label + "</button>" 228 }+ "\">" + cancel_label + "</button>"
229 }), 229 }),
230 - literal("<br/>") 230 + br,
231 ]) 231 ])
232 ) 232 )
233 ]) 233 ])
@@ -375,9 +375,9 @@ public define HTML_Off_Form @@ -375,9 +375,9 @@ public define HTML_Off_Form
375 literal( 375 literal(
376 376
377 "<script type=\"text/javascript\"> 377 "<script type=\"text/javascript\">
378 - dojo.addOnLoad(function(){  
379 - init_dojo_grid(\""+html_id.id+"\", \""+colum1+"\",\""+colum2+"\", \""+colum3+"\", \""+colum4+"\", "+ (if can_edit then "1" else "0")+");  
380 - }); 378 + dojo.addOnLoad(function(){
  379 + init_dojo_grid(\""+html_id.id+"\", \""+colum1+"\",\""+colum2+"\", \""+colum3+"\", \""+colum4+"\", "+ (if can_edit then "1" else "0")+");
  380 +});
381 </script>"), 381 </script>"),
382 div_empty([id(html_id.id) . attributes /*attr("dojoType", "dojox.Grid"), */]), 382 div_empty([id(html_id.id) . attributes /*attr("dojoType", "dojox.Grid"), */]),
383 ]). 383 ]).
@@ -386,20 +386,18 @@ public define HTML_Off_Form @@ -386,20 +386,18 @@ public define HTML_Off_Form
386 386
387 public define HTML_Off_Form 387 public define HTML_Off_Form
388 dojo_message_box 388 dojo_message_box
389 - (  
390 - HTML_Off_Form name1,  
391 - HTML_Off_Form name2,  
392 - )  
393 - =  
394 - sequence([  
395 - literal("<br/>"),  
396 - div([class("message_box")],  
397 - sequence([  
398 - div([id("node3"), class("box nopad hidden")], name1),  
399 - div([id("node4"), class("box two nopad")], name2),  
400 - ])),  
401 - literal("<br/>"),  
402 - ]). 389 + (
  390 + HTML_Off_Form name1,
  391 + HTML_Off_Form name2,
  392 + )=
  393 + sequence([
  394 + br,
  395 + div([class("message_box")], [
  396 + div([id("node3"), class("box nopad hidden")], name1),
  397 + div([id("node4"), class("box two nopad")], name2),
  398 + ]),
  399 + br,
  400 + ]).
403 401
404 402
405 403