mirror of https://github.com/MISP/MISP
chg: [updateProgress] Redraw the switch if it gets overriden
parent
b357405c0b
commit
c4d6d200c0
|
@ -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%;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -36,6 +36,7 @@ function update_state(hard_reload) {
|
|||
success: function( html, textStatus, jQxhr ) {
|
||||
$('div.servers.form').html(html);
|
||||
pooler.unthrottle();
|
||||
pooler.createSwitch();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue