FCLT#91497 Van error-toaster -> error-alert
svn path=/Website/branches/v2025.4/; revision=71122
This commit is contained in:
@@ -15,10 +15,7 @@ function FcltCallbackAndThen(afterAction) {
|
||||
return function(json, textStatus) {
|
||||
if (json.message) FcltMgr.alert(json.message);
|
||||
if (json.warning) FcltMgr.alert(json.warning);
|
||||
if (json.toaster) {
|
||||
var errorToaster = ("success" in json) && !json.success; // Als expliciet success = false wordt meegegeven, dan krijgt een eventuele toaster het type 'error'
|
||||
FcltToast(json.toaster, (errorToaster ? 1 : 0));
|
||||
}
|
||||
if (json.toaster) FcltMgr.topmanager().window.$.toast({ text: json.toaster, icon: "success", position: 'top-center', loaderBg: '#fff' });
|
||||
json.message = null;
|
||||
json.warning = null;
|
||||
json.toaster = null;
|
||||
@@ -32,10 +29,7 @@ function FcltCallbackAndThenAlways(afterAction) {
|
||||
return function(json, textStatus) {
|
||||
if (json.message) FcltMgr.alert(json.message);
|
||||
if (json.warning) FcltMgr.alert(json.warning);
|
||||
if (json.toaster) {
|
||||
var errorToaster = ("success" in json) && !json.success; // Als expliciet success = false wordt meegegeven, dan krijgt een eventuele toaster het type 'error'
|
||||
FcltToast(json.toaster, (errorToaster ? 1 : 0));
|
||||
}
|
||||
if (json.toaster) FcltMgr.topmanager().window.$.toast({ text: json.toaster, icon: "success", position: 'top-center', loaderBg: '#fff' });
|
||||
json.message = null;
|
||||
json.warning = null;
|
||||
json.toaster = null;
|
||||
@@ -111,7 +105,7 @@ function FcltToast(msg, type, position, loaderBg) {
|
||||
position = position || "top-center";
|
||||
loaderBg = loaderBg || "#fff";
|
||||
|
||||
FcltMgr.topmanager().window.$.toast({ text: msg, icon: icon, position: position, loaderBg: loaderBg });
|
||||
FcltMgr.topmanager().window.$.toast({ text: msg, icon: icon, position: position, loaderBg: loaderBg });;
|
||||
}
|
||||
|
||||
// Handig, komt heel veel voor
|
||||
|
||||
@@ -46,7 +46,7 @@ if (prs_tz != "")
|
||||
var oRs = Oracle.Execute(sql);
|
||||
if (oRs.EoF) {
|
||||
result.success = false;
|
||||
result.toaster = "Could not recognize timezone " + safe.html(prs_tz);
|
||||
result.warning = "Could not recognize timezone " + safe.html(prs_tz);
|
||||
Response.Write(JSON.stringify(result));
|
||||
ASPPAGE_END();
|
||||
Response.End;
|
||||
|
||||
Reference in New Issue
Block a user