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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user