Improve allow list UI

This commit is contained in:
yflory
2020-03-06 13:52:46 +01:00
parent 62725caace
commit dba2cb1860
3 changed files with 16 additions and 0 deletions

View File

@@ -1194,21 +1194,28 @@ define([
var $spinner = $('<span>', {'class': 'fa fa-spinner fa-pulse'}).hide();
var state = false;
var to;
var spin = function () {
clearTimeout(to);
state = true;
$ok.hide();
$spinner.show();
};
var hide = function () {
clearTimeout(to);
state = false;
$ok.hide();
$spinner.hide();
};
var done = function () {
clearTimeout(to);
state = false;
$ok.show();
$spinner.hide();
to = setTimeout(function () {
$ok.hide();
}, 500);
};
if ($container && $container.append) {