From 89a7426e9ee715a16a578c65366f7c741bcde569 Mon Sep 17 00:00:00 2001 From: ftimme Date: Thu, 23 Aug 2012 11:43:37 +0000 Subject: [PATCH] - Added optional successMessage parameter to function submitFormConfirm. --- interface/web/js/scrigo.js.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index 0e3fe68b4..b44ff1059 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -134,12 +134,14 @@ function submitForm(formname,target) { } function submitFormConfirm(formname,target,confirmation) { + var successMessage = arguments[3]; if(window.confirm(confirmation)) { var submitFormObj = jQuery.ajax({ type: "POST", url: target, data: jQuery('#'+formname).serialize(), dataType: "html", success: function(data, textStatus, jqXHR) { + if(successMessage) alert(successMessage); if(jqXHR.responseText.indexOf('HEADER_REDIRECT:') > -1) { var parts = jqXHR.responseText.split(':'); //alert(parts[1]); -- GitLab