mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修复创建授权规则,选择资产导致其他输入框清空的bug - select2 (#2141)
parent
9d1f5d3184
commit
18e590effd
|
@ -35,7 +35,7 @@ $(document).ready(function () {
|
||||||
})
|
})
|
||||||
.on('click', '#btn_asset_modal_confirm', function () {
|
.on('click', '#btn_asset_modal_confirm', function () {
|
||||||
var assets = asset_table2.selected;
|
var assets = asset_table2.selected;
|
||||||
$('.select2').val(assets).trigger('change');
|
$('#id_assets').val(assets).trigger('change');
|
||||||
$("#asset_list_modal").modal('hide');
|
$("#asset_list_modal").modal('hide');
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -113,7 +113,7 @@ $(document).ready(function () {
|
||||||
.on('click', '#btn_asset_modal_confirm', function () {
|
.on('click', '#btn_asset_modal_confirm', function () {
|
||||||
var assets = asset_table2.selected;
|
var assets = asset_table2.selected;
|
||||||
|
|
||||||
$('.select2').val(assets).trigger('change');
|
$('#id_assets').val(assets).trigger('change');
|
||||||
|
|
||||||
$("#asset_list_modal").modal('hide');
|
$("#asset_list_modal").modal('hide');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue