+ Add zentao user render js.

This commit is contained in:
caoyanyi
2023-08-07 15:29:55 +08:00
parent dfc5eb4fb6
commit 8a0d6a0b06
+14 -1
View File
@@ -8,4 +8,17 @@ $(document).ready(function()
$(this).parent().parent().find('.email').text(user.email)
}
});
});
$(document).on('click', '.zentao-users .chosen-container', function()
{
var $obj = $(this).prev('select');
var value = $obj.val();
if($obj.hasClass('filled')) return false;
$obj.empty();
$obj.append($('#userList').html());
$obj.val(value);
$obj.addClass('filled');
$obj.trigger("chosen:updated");
})
});