js/ui: add toggleDebug function

This commit is contained in:
Thomas Gelf 2014-06-24 06:41:57 +02:00
parent 473a705e2e
commit 90bb20f4c3
1 changed files with 9 additions and 0 deletions

View File

@ -52,7 +52,16 @@
},
toggleDebug: function() {
if (this.debug) {
return this.disableDebug();
} else {
return this.enableDebug();
}
},
enableDebug: function () {
if (this.debug === true) { return this; }
this.debug = true;
this.debugTimer = this.icinga.timer.register(
this.refreshDebug,