Solve margin issue.

This commit is contained in:
Michael Teeuw
2016-10-15 17:06:52 +02:00
parent 0e026de5bd
commit 6816bd8bad
3 changed files with 19 additions and 5 deletions

View File

@@ -10,19 +10,28 @@ Module.register("updatenotification", {
start: function () {
Log.log("Start updatenotification");
var self = this;
},
notificationReceived: function(notification, payload, sender) {
if (notification === "DOM_OBJECTS_CREATED") {
this.sendSocketNotification("CONFIG", this.config);
this.hide(0,{lockString: self.identifier});
}
},
socketNotificationReceived: function (notification, payload) {
if (notification === "STATUS") {
this.status = payload;
this.updateDom(1000);
this.updateUI();
}
},
updateUI: function() {
var self = this;
if (this.status && this.status.behind > 0) {
self.updateDom(0);
self.show(1000, {lockString: self.identifier});
}
},