js/ui: add toggleDebug function
This commit is contained in:
parent
473a705e2e
commit
90bb20f4c3
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue