by etwoss » 07 Jul 2014 11:01
Hi
OK,
Thanks
Did find that it will work if i change JS.Text; from
' alertify.log("Test notification!", "success" , true, null); '
to
' alertify.log("Test notification!", "success" ); '
function TIWCGJQShowMessage.GetNotificationJS(const AMsg: string; const AType: TIWCGJQShowNotificationType;
const AWait: Integer; const ACanClose: Boolean; const ALogID: string): string;
var
JS: TIWCGJScript;
s: string;
LId: string;
begin
JS:= TIWCGJScript.Create;
try
if ALogID = '' then
LId:= 'null'
else
LId:= QuotedStr(ALogID);
with JS do
begin
Add(GetSetPropsJS);
if AWait > -1 then
s:= Format(', %d',[AWait]);
AddF('alertify.log("%s", "%s" %s, %s, %s);',[AMsg,IWCGJQShowNotificationTypeStr[AType],s,JQBoolStr(ACanClose),LId]);
end;
Result:= JS.Text;
finally
JS.Free;
end;
end;