We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecb6b3a commit 89a7426Copy full SHA for 89a7426
interface/web/js/scrigo.js.php
@@ -134,12 +134,14 @@ function submitForm(formname,target) {
134
}
135
136
function submitFormConfirm(formname,target,confirmation) {
137
+ var successMessage = arguments[3];
138
if(window.confirm(confirmation)) {
139
var submitFormObj = jQuery.ajax({ type: "POST",
140
url: target,
141
data: jQuery('#'+formname).serialize(),
142
dataType: "html",
143
success: function(data, textStatus, jqXHR) {
144
+ if(successMessage) alert(successMessage);
145
if(jqXHR.responseText.indexOf('HEADER_REDIRECT:') > -1) {
146
var parts = jqXHR.responseText.split(':');
147
//alert(parts[1]);
0 commit comments