diff --git a/web/widgets/button.anubis b/web/widgets/button.anubis index 6982de2..2921443 100644 --- a/web/widgets/button.anubis +++ b/web/widgets/button.anubis @@ -7,6 +7,7 @@ */ read calexium_lib/web/CXM_making_a_web_site.anubis +read tools/basis.anubis public define HTML_Partial_Content img_button @@ -29,6 +30,7 @@ public define HTML_Partial_Content img_button_confirm ( String img_path, + List(CoreAttrs) core_attrs, String dlg_title, String dlg_text, String dlg_ok, @@ -37,7 +39,7 @@ public define HTML_Partial_Content List((String, String)) extra_ops )= partial_content([js(js_file("js/cxm/cxm.js"))], - image([style("cursor: pointer"), event(onclick, "CalexiumToolBox.make_confirm_dialog('" + dlg_title + "', + image(core_attrs + [style("cursor: pointer"), event(onclick, "CalexiumToolBox.make_confirm_dialog('" + dlg_title + "', '" + dlg_text + "', '" + dlg_ok + "', '" + dlg_cancel + "', @@ -53,5 +55,31 @@ public define HTML_Partial_Content String dlg_cancel, String url )= - img_button_confirm(img_path, dlg_title, dlg_text, dlg_ok, dlg_cancel, url, []). + img_button_confirm(img_path, [], dlg_title, dlg_text, dlg_ok, dlg_cancel, url, []). + +public define HTML_Partial_Content + img_button_confirm + ( + String img_path, + List(CoreAttrs) core_attrs, + String dlg_title, + String dlg_text, + String dlg_ok, + String dlg_cancel, + String url + )= + img_button_confirm(img_path, core_attrs, dlg_title, dlg_text, dlg_ok, dlg_cancel, url, []). + +public define HTML_Partial_Content + img_button_confirm + ( + String img_path, + String dlg_title, + String dlg_text, + String dlg_ok, + String dlg_cancel, + String url, + List((String, String)) extra_ops + )= + img_button_confirm(img_path, [], dlg_title, dlg_text, dlg_ok, dlg_cancel, url, extra_ops). -- libgit2 0.21.4