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,6 +7,7 @@ | ||
| 7 | */ | 7 | */ |
| 8 | 8 | ||
| 9 | read calexium_lib/web/CXM_making_a_web_site.anubis | 9 | read calexium_lib/web/CXM_making_a_web_site.anubis |
| 10 | +read tools/basis.anubis | ||
| 10 | 11 | ||
| 11 | public define HTML_Partial_Content | 12 | public define HTML_Partial_Content |
| 12 | img_button | 13 | img_button |
| @@ -29,6 +30,7 @@ public define HTML_Partial_Content | @@ -29,6 +30,7 @@ public define HTML_Partial_Content | ||
| 29 | img_button_confirm | 30 | img_button_confirm |
| 30 | ( | 31 | ( |
| 31 | String img_path, | 32 | String img_path, |
| 33 | + List(CoreAttrs) core_attrs, | ||
| 32 | String dlg_title, | 34 | String dlg_title, |
| 33 | String dlg_text, | 35 | String dlg_text, |
| 34 | String dlg_ok, | 36 | String dlg_ok, |
| @@ -37,7 +39,7 @@ public define HTML_Partial_Content | @@ -37,7 +39,7 @@ public define HTML_Partial_Content | ||
| 37 | List((String, String)) extra_ops | 39 | List((String, String)) extra_ops |
| 38 | )= | 40 | )= |
| 39 | partial_content([js(js_file("js/cxm/cxm.js"))], | 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 | '" + dlg_text + "', | 43 | '" + dlg_text + "', |
| 42 | '" + dlg_ok + "', | 44 | '" + dlg_ok + "', |
| 43 | '" + dlg_cancel + "', | 45 | '" + dlg_cancel + "', |
| @@ -53,5 +55,31 @@ public define HTML_Partial_Content | @@ -53,5 +55,31 @@ public define HTML_Partial_Content | ||
| 53 | String dlg_cancel, | 55 | String dlg_cancel, |
| 54 | String url | 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 |