FSN#36001 Zorgen dat toaster altijd boven komt. Ook beter voor frames die reloaden

svn path=/Website/trunk/; revision=28931
This commit is contained in:
Jos Groot Lipman
2016-04-13 19:40:30 +00:00
parent a89f9eb218
commit 19c02ed9b0

View File

@@ -17,7 +17,7 @@ function FcltCallbackAndThen(afterAction)
{
if (json.message) alert(json.message);
if (json.warning) alert(json.warning);
if (json.toaster) $.toast({ text: json.toaster, icon: "success", position : 'top-center'});
if (json.toaster) FcltMgr.topmanager().window.$.toast({ text: json.toaster, icon: "success", position : 'top-center'});
json.message = null;
json.warning = null;
json.toaster = null;
@@ -34,7 +34,7 @@ function FcltCallbackAndThenAlways(afterAction)
{
if (json.message) alert(json.message);
if (json.warning) alert(json.warning);
if (json.toaster) $.toast({ text: json.toaster, icon: "success", position : 'top-center'});
if (json.toaster) FcltMgr.topmanager().window.$.toast({ text: json.toaster, icon: "success", position : 'top-center'});
json.message = null;
json.warning = null;
json.toaster = null;
@@ -87,7 +87,7 @@ function FcltSyncgetJSON(url, data)
if (globalData && globalData.error)
alert(globalData.error);
if (globalData && globalData.toaster)
$.toast({ text: globalData.toaster, icon: "success", position : 'top-center'});;
FcltMgr.topmanager().window.$.toast({ text: globalData.toaster, icon: "success", position : 'top-center'});;
return globalData;
}