diff --git a/static/admin.js b/static/admin.js index 3f2044efd..97900b3df 100644 --- a/static/admin.js +++ b/static/admin.js @@ -169,7 +169,7 @@ $(function () { return false; } if (typeof (res) === 'object') { - return $.msg.auto(res, res.wait ? res.wait : time); + return $.msg.auto(res, time || res.wait || undefined); } self.show(res); }