abort_with_warning iets robuuster op niet gedefinieerde JSON
svn path=/Website/branches/v2017.1/; revision=34550
This commit is contained in:
@@ -1127,7 +1127,7 @@ function abort_with_warning(warning, code)
|
||||
Response.Status = code;
|
||||
Response.End;
|
||||
}
|
||||
else if (JSON_Result && JSON)
|
||||
else if (JSON_Result && typeof JSON != "undefined")
|
||||
{
|
||||
Response.Write(JSON.stringify({ warning: warning, keepForm: true }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user