chg: [updateProgress] Redraw the switch if it gets overriden

pull/5002/head
mokaddem 2019-10-07 11:43:00 +02:00
parent b357405c0b
commit c4d6d200c0
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
3 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,7 @@
border-radius: 18px;
margin-bottom: 0px;
background-image: linear-gradient(90deg, #2196F3, #6ec7ff, #2196F3);
background-image: linear-gradient(90deg, #2196F3, #1db6ff, #2196F3);
background-position: 0% 50%;
background-repeat: no-repeat;
background-size: 0% 100%;

View File

@ -37,7 +37,7 @@
init: function() {
if (this.config.container !== false) {
this.addCheckbox();
this.createSwitch();
}
if (this.config.checkboxLink !== false) {
@ -144,7 +144,7 @@
return false;
},
addCheckbox: function() {
createSwitch: function() {
this.container = document.getElementById(this.config.container);
var temp = document.createElement('div');
this.config.checkboxLink = this.genRandom();

View File

@ -36,6 +36,7 @@ function update_state(hard_reload) {
success: function( html, textStatus, jQxhr ) {
$('div.servers.form').html(html);
pooler.unthrottle();
pooler.createSwitch();
}
});
} else {