summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorGislene Pereira <gislene01@gmail.com>2016-03-14 16:05:06 -0300
committerGislene Pereira <gislene01@gmail.com>2016-03-14 16:05:06 -0300
commite96e9aa73af9dde6dab2a12da0a9635d6d7a3d8e (patch)
treeefebc6d4c0287e1c5a1127b3ff4756171e0e86b5 /web-ui
parentbfa9686b400ba09f8eec59046bc907baf7c229a6 (diff)
Adding logo loading event to Saving Draft;
+ Adding timeout to 0.6 secs before stopping the spinning; + Removing unnecessary defaultAttr. Issue #238
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/app/js/page/pix_logo.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web-ui/app/js/page/pix_logo.js b/web-ui/app/js/page/pix_logo.js
index c03fe4ec..c5c709d6 100644
--- a/web-ui/app/js/page/pix_logo.js
+++ b/web-ui/app/js/page/pix_logo.js
@@ -26,21 +26,21 @@ define(
return defineComponent(pixLogo);
function pixLogo() {
- this.defaultAttrs({
- 'pixLogo': '#pix-logo'
- });
-
this.spinLogo = function (ev, data) {
- this.$node.parents().eq(1).find('.logo-part-animation-off').attr('class', 'logo-part-animation-on');
+ $('.logo-part-animation-off').attr('class', 'logo-part-animation-on');
};
this.stopSpinningLogo = function (ev, data) {
- this.$node.parents().eq(1).find('.logo-part-animation-on').attr('class', 'logo-part-animation-off');
+ setTimeout(function(){
+ $('.logo-part-animation-on').attr('class', 'logo-part-animation-off');
+ }, 600);
};
this.after('initialize', function () {
this.on(document, events.ui.tag.select, this.spinLogo);
this.on(document, events.mails.available, this.stopSpinningLogo);
+ this.on(document, events.mail.saveDraft, this.spinLogo);
+ this.on(document, events.mail.draftSaved, this.stopSpinningLogo);
});
}
}