use new alert api
This commit is contained in:
parent
b01e356c94
commit
03fe8200b2
1 changed files with 4 additions and 0 deletions
|
|
@ -566,6 +566,7 @@ self.kiri.license = exports.LICENSE;
|
|||
ajax : ajax,
|
||||
help : showHelp,
|
||||
load : loadWidget,
|
||||
alert: alert2,
|
||||
focus : takeFocus,
|
||||
stats : STATS,
|
||||
import : loadFile,
|
||||
|
|
@ -607,6 +608,9 @@ self.kiri.license = exports.LICENSE;
|
|||
}
|
||||
|
||||
function alert2(message, time) {
|
||||
if (message === undefined) {
|
||||
return updateAlerts(true);
|
||||
}
|
||||
alerts.push([message, Date.now(), time]);
|
||||
updateAlerts();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue