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,7 +11,7 @@ var OpenKfet = function (force_close_url, admin) {
|
||||||
status_text: $('.kfetopen .status-text'),
|
status_text: $('.kfetopen .status-text'),
|
||||||
force_close_btn: $('.kfetopen .force-close-btn'),
|
force_close_btn: $('.kfetopen .force-close-btn'),
|
||||||
warning: $('.kfetopen .warning')
|
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);
|
setInterval(() => this.refresh(), this.refresh_interval * 1000);
|
||||||
|
@ -93,8 +93,7 @@ OpenKfet.prototype = {
|
||||||
if (password !== undefined)
|
if (password !== undefined)
|
||||||
$xhr.setRequestHeader("KFetPassword", password);
|
$xhr.setRequestHeader("KFetPassword", password);
|
||||||
}
|
}
|
||||||
})
|
}).fail(function ($xhr) {
|
||||||
.fail(function ($xhr) {
|
|
||||||
switch ($xhr.status) {
|
switch ($xhr.status) {
|
||||||
case 403:
|
case 403:
|
||||||
requestAuth({ 'errors': {} }, this.toggle_force_close.bind(this));
|
requestAuth({ 'errors': {} }, this.toggle_force_close.bind(this));
|
||||||
|
|
Loading…
Reference in a new issue