mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-09 23:05:04 +02:00
related to #1265 Added spinner when modifying user.
This commit is contained in:
@@ -1299,6 +1299,10 @@ function update_user_password() {
|
||||
}
|
||||
|
||||
function update_user_info() {
|
||||
|
||||
//Show spinner
|
||||
$(".update-user-button").html("<i class='icon-spin6 animate-spin'> </i>");
|
||||
|
||||
let pop_in_container = $('.UserListPopInContainer');
|
||||
let ajax_data = {
|
||||
pwg_token: pwg_token,
|
||||
@@ -1334,6 +1338,9 @@ function update_user_info() {
|
||||
fill_container_user_info($('#user-table-content .user-container').eq(last_user_index), last_user_index);
|
||||
}
|
||||
$("#UserList .update-user-success").fadeIn();
|
||||
|
||||
//Hide spinner
|
||||
$(".update-user-button").html(str_popin_update_btn);
|
||||
} else if (data.stat === 'fail') {
|
||||
$("#UserList .update-user-fail").html(data.message);
|
||||
$("#UserList .update-user-fail").fadeIn();
|
||||
|
||||
@@ -30,6 +30,7 @@ const dates_infos = '{'between %s and %s'|translate}'
|
||||
const hide_str = '{'Hide'|@translate}';
|
||||
const show_str = '{'Show'|@translate}';
|
||||
const user_added_str = '{'User %s added'|@translate}';
|
||||
const str_popin_update_btn = '{'Update'|@translate}';
|
||||
|
||||
months = [
|
||||
"{'Jan'|@translate}",
|
||||
|
||||
Reference in New Issue
Block a user