Add button for restarting filemon

although this button shows up only on the datasync page, for now..
This commit is contained in:
Lance Edgar 2018-10-25 17:47:43 -05:00
parent fc8391c6d1
commit 2131ea65cb
4 changed files with 89 additions and 23 deletions

View file

@ -32,9 +32,12 @@ function disable_filter_options() {
function disable_button(button, label) {
$(button).button('disable');
if (label === undefined) {
label = "Working, please wait...";
label = $(button).data('working-label') || "Working, please wait...";
}
if (label) {
if (label.slice(-3) != '...') {
label += '...';
}
$(button).button('option', 'label', label);
}
}