Commit b342b221f991baa1ec880148eaf2e23688579b5e
1 parent
e6df8a51
[+] list of coreattributes as argument of the img_button_confirm
Showing
1 changed file
with
30 additions
and
2 deletions
Show diff stats
web/widgets/button.anubis
| ... | ... | @@ -7,6 +7,7 @@ |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | 9 | read calexium_lib/web/CXM_making_a_web_site.anubis |
| 10 | +read tools/basis.anubis | |
| 10 | 11 | |
| 11 | 12 | public define HTML_Partial_Content |
| 12 | 13 | img_button |
| ... | ... | @@ -29,6 +30,7 @@ public define HTML_Partial_Content |
| 29 | 30 | img_button_confirm |
| 30 | 31 | ( |
| 31 | 32 | String img_path, |
| 33 | + List(CoreAttrs) core_attrs, | |
| 32 | 34 | String dlg_title, |
| 33 | 35 | String dlg_text, |
| 34 | 36 | String dlg_ok, |
| ... | ... | @@ -37,7 +39,7 @@ public define HTML_Partial_Content |
| 37 | 39 | List((String, String)) extra_ops |
| 38 | 40 | )= |
| 39 | 41 | partial_content([js(js_file("js/cxm/cxm.js"))], |
| 40 | - image([style("cursor: pointer"), event(onclick, "CalexiumToolBox.make_confirm_dialog('" + dlg_title + "', | |
| 42 | + image(core_attrs + [style("cursor: pointer"), event(onclick, "CalexiumToolBox.make_confirm_dialog('" + dlg_title + "', | |
| 41 | 43 | '" + dlg_text + "', |
| 42 | 44 | '" + dlg_ok + "', |
| 43 | 45 | '" + dlg_cancel + "', |
| ... | ... | @@ -53,5 +55,31 @@ public define HTML_Partial_Content |
| 53 | 55 | String dlg_cancel, |
| 54 | 56 | String url |
| 55 | 57 | )= |
| 56 | - img_button_confirm(img_path, dlg_title, dlg_text, dlg_ok, dlg_cancel, url, []). | |
| 58 | + img_button_confirm(img_path, [], dlg_title, dlg_text, dlg_ok, dlg_cancel, url, []). | |
| 59 | + | |
| 60 | +public define HTML_Partial_Content | |
| 61 | + img_button_confirm | |
| 62 | + ( | |
| 63 | + String img_path, | |
| 64 | + List(CoreAttrs) core_attrs, | |
| 65 | + String dlg_title, | |
| 66 | + String dlg_text, | |
| 67 | + String dlg_ok, | |
| 68 | + String dlg_cancel, | |
| 69 | + String url | |
| 70 | + )= | |
| 71 | + img_button_confirm(img_path, core_attrs, dlg_title, dlg_text, dlg_ok, dlg_cancel, url, []). | |
| 72 | + | |
| 73 | +public define HTML_Partial_Content | |
| 74 | + img_button_confirm | |
| 75 | + ( | |
| 76 | + String img_path, | |
| 77 | + String dlg_title, | |
| 78 | + String dlg_text, | |
| 79 | + String dlg_ok, | |
| 80 | + String dlg_cancel, | |
| 81 | + String url, | |
| 82 | + List((String, String)) extra_ops | |
| 83 | + )= | |
| 84 | + img_button_confirm(img_path, [], dlg_title, dlg_text, dlg_ok, dlg_cancel, url, extra_ops). | |
| 57 | 85 | ... | ... |