Just comments

This commit is contained in:
Thomas Gelf 2014-03-08 16:20:30 +01:00
parent 227b65558c
commit ac0980b111

View File

@ -193,10 +193,16 @@
}); });
}, },
/**
* Disable the autorefresh mechanism
*/
disableAutorefresh: function () { disableAutorefresh: function () {
this.autorefreshEnabled = false; this.autorefreshEnabled = false;
}, },
/**
* Enable the autorefresh mechanism
*/
enableAutorefresh: function () { enableAutorefresh: function () {
this.autorefreshEnabled = true; this.autorefreshEnabled = true;
}, },
@ -374,6 +380,9 @@
} }
}, },
/**
* Regardless of whether a request succeeded of failed, clean up
*/
onComplete: function (req, textStatus) { onComplete: function (req, textStatus) {
delete this.requests[req.$target.attr('id')]; delete this.requests[req.$target.attr('id')];
this.icinga.ui.fadeNotificationsAway(); this.icinga.ui.fadeNotificationsAway();
@ -436,6 +445,9 @@
} }
}, },
/**
* Create a notification. Can be improved.
*/
createNotice: function (severity, message, persist) { createNotice: function (severity, message, persist) {
var c = severity; var c = severity;
if (persist) { if (persist) {