From 0e530bd9203e79218e9aad631e8495794a72a042 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Thu, 05 Jan 2012 07:12:18 -0500 Subject: [PATCH] Show additional popup dialog on error messages --- program/js/app.js | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 27af1ff..7fe300b 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -5423,6 +5423,8 @@ obj.click(function() { return ref.hide_message(obj); }); } + this.triggerEvent('message', { message:msg, type:type, timeout:timeout, object:obj }); + if (timeout > 0) window.setTimeout(function() { ref.hide_message(id, type == 'loading'); }, timeout); return id; -- Gitblit v1.9.1