forked from DGNum/gestioCOF
Fix formatting
This commit is contained in:
parent
11d94ecba8
commit
ba4cc01ed4
1 changed files with 9 additions and 10 deletions
|
@ -11,9 +11,9 @@ var OpenKfet = function (force_close_url, admin) {
|
|||
status_text: $('.kfetopen .status-text'),
|
||||
force_close_btn: $('.kfetopen .force-close-btn'),
|
||||
warning: $('.kfetopen .warning')
|
||||
},
|
||||
}
|
||||
|
||||
this.dom.force_close_btn.click(() => this.toggle_force_close());
|
||||
this.dom.force_close_btn.click(() => this.toggle_force_close());
|
||||
setInterval(() => this.refresh(), this.refresh_interval * 1000);
|
||||
OpenWS.add_handler(data => this.refresh(data));
|
||||
|
||||
|
@ -93,14 +93,13 @@ OpenKfet.prototype = {
|
|||
if (password !== undefined)
|
||||
$xhr.setRequestHeader("KFetPassword", password);
|
||||
}
|
||||
})
|
||||
.fail(function ($xhr) {
|
||||
switch ($xhr.status) {
|
||||
case 403:
|
||||
requestAuth({ 'errors': {} }, this.toggle_force_close.bind(this));
|
||||
break;
|
||||
}
|
||||
});
|
||||
}).fail(function ($xhr) {
|
||||
switch ($xhr.status) {
|
||||
case 403:
|
||||
requestAuth({ 'errors': {} }, this.toggle_force_close.bind(this));
|
||||
break;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
clear_class: function () {
|
||||
|
|
Loading…
Reference in a new issue