X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_input.inc;h=a2355cfb02ee4f34c8823d65c63a1feb6910f539;hb=4098636a10a25952a38e1b0c8f6e80dff44ae4e7;hp=9d74f67ca33606c520fc6c6436e8214a3926a6ae;hpb=8273b6b981c008c7968a7f7c8eaea640d453c3f2;p=fa-stable.git diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 9d74f67c..a2355cfb 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -231,6 +231,11 @@ function submit_return($name, $value, $title=false, $async=false) submit($name, $value, true, $title, $async); } } + +function submit_js_confirm($name, $msg) { + add_js_source( + "_validate.$name=function(){ return confirm('$msg');};"); +}; //----------------------------------------------------------------------------------- function set_icon($icon, $title=false)