Skip to content

Commit

Permalink
Fix select on User LO management panel
Browse files Browse the repository at this point in the history
 - It was partly selectized like the user_groups select
  • Loading branch information
torinfo committed Jun 29, 2021
1 parent e38786b commit 48b5d3e
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions website_code/scripts/management.js
Expand Up @@ -43,20 +43,11 @@ function management_ajax_send_prepare(url){

}

// Function management state changed update screen
//
// Generic ajax handler for this script

function management_stateChanged(response) {
if (response != "") {

document.getElementById('admin_area').innerHTML = response;
loadModal();

$('#list_user').selectize({
plugins: ['remove_button'],
hideSelected: false
});
}
}

Expand Down Expand Up @@ -1257,10 +1248,27 @@ function user_groups_list(){
},
})
.done(function (response) {
management_stateChanged(response);
management_usergroupStateChanged(response);
});
}

// Function management state changed update screen
//
// Specific ajax handler for user_groups_list

function management_usergroupStateChanged(response) {
if (response != "") {

document.getElementById('admin_area').innerHTML = response;
loadModal();

$('#list_user').selectize({
plugins: ['remove_button'],
hideSelected: false
});
}
}

function list_group_members(tag, id=-1){

var group = document.getElementById(tag).value;
Expand Down

0 comments on commit 48b5d3e

Please sign in to comment.