Merge pull request #14223 from Godmartinz/user-bulk-edit

Fixed Select2 functionality in User bulk check-in Delete User
This commit is contained in:
snipe 2024-02-06 18:22:46 +00:00 committed by GitHub
commit 5f8ac66036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,12 +131,13 @@
$(":submit").attr("disabled", "disabled");
//The line below needs to be here because in mobile view the status_id select2 forgets its select2 so this makes it function properly.
$("[name='status_id']").select2();
$("[name='status_id']").on('select2:select', function (e) {
if (e.params.data.id != ""){
if (e.params.data.id != "") {
console.log(e.params.data.id);
$(":submit").removeAttr("disabled");
}
else {
} else {
$(":submit").attr("disabled", "disabled");
}
});