From 04145bf5976042307ee0381f4faaee533065efbb Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 28 Jul 2015 09:58:32 +0000 Subject: [PATCH] Mail tree W.I.P.: -Show ajax-loader on clicked node while autoloading processing --- mail/js/app.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/mail/js/app.js b/mail/js/app.js index 8f19df9c03..cc50cdfc2d 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -3690,6 +3690,34 @@ app.classes.mail = AppJS.extend( } this.et2._inst.submit(_widget); }, + + /** + * Show ajax-loader when the autoloading get started + * + * @param {type} _id item id + * @param {type} _widget tree widget + * @returns {Boolean} + */ + subscription_autoloadingStart: function (_id, _widget) + { + var node = _widget.input._globalIdStorageFind(_id); + if (node && typeof node.htmlNode != 'undefined') + { + var img = jQuery('img',node.htmlNode)[0]; + img.src = egw.image('ajax-loader', 'admin'); + } + return true; + }, + + /** + * Revert back the icon after autoloading is finished + * @returns {Boolean} + */ + subscription_autoloadingEnd: function () + { + return true; + }, + /** * Popup the subscription dialog *