mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-16 03:15:59 +00:00
[Web] fix attribute mapping list
This commit is contained in:
committed by
DerLinkman
parent
5545d8a56c
commit
e4284b8e19
@@ -771,7 +771,7 @@ jQuery(function($){
|
||||
$('.iam_rolemap_add').click(async function(e){
|
||||
e.preventDefault();
|
||||
|
||||
var parent = $(this).parent().parent();
|
||||
var parent = $('#iam_mapping_list')
|
||||
$(parent).children().last().clone().appendTo(parent);
|
||||
var newChild = $(parent).children().last();
|
||||
$(newChild).find('input').val('');
|
||||
@@ -784,12 +784,14 @@ jQuery(function($){
|
||||
$('.iam_rolemap_del').off('click');
|
||||
$('.iam_rolemap_del').click(async function(e){
|
||||
e.preventDefault();
|
||||
$(this).parent().remove();
|
||||
if ($(this).parent().parent().children().length > 1)
|
||||
$(this).parent().remove();
|
||||
});
|
||||
});
|
||||
$('.iam_rolemap_del').click(async function(e){
|
||||
e.preventDefault();
|
||||
$(this).parent().remove();
|
||||
if ($(this).parent().parent().children().length > 1)
|
||||
$(this).parent().remove();
|
||||
});
|
||||
// selecting identity provider
|
||||
$('#iam_provider').on('change', function(){
|
||||
|
||||
Reference in New Issue
Block a user