1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-26 21:07:40 +00:00

Admin can now force full sync for users (fix for #2993

This commit is contained in:
Ozzie Isaacs
2024-02-25 20:03:38 +01:00
parent 0ebfba8d05
commit b38a1b2298
3 changed files with 23 additions and 8 deletions

View File

@@ -621,8 +621,12 @@ $(function() {
"btnfullsync",
"GeneralDeleteModal",
$(this).data('value'),
function(value){
path = getPath() + "/ajax/fullsync"
function(userid) {
if (userid) {
path = getPath() + "/ajax/fullsync/" + userid
} else {
path = getPath() + "/ajax/fullsync"
}
$.ajax({
method:"post",
url: path,