mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-10-22 00:09:14 +00:00
[Update] 修复无法取消授权资产的前端bug
This commit is contained in:
@@ -86,7 +86,7 @@ $(document).ready(function () {
|
||||
closeOnSelect: false
|
||||
});
|
||||
$('#datepicker').datepicker({
|
||||
format: "yyyy-mm-dd",
|
||||
format: "yyyy-mm-dd HH:mm",
|
||||
todayBtn: "linked",
|
||||
keyboardNavigation: false,
|
||||
forceParse: false,
|
||||
@@ -94,8 +94,11 @@ $(document).ready(function () {
|
||||
autoclose: true
|
||||
});
|
||||
$("#id_assets").parent().find(".select2-selection").on('click', function (e) {
|
||||
e.preventDefault();
|
||||
$("#asset_list_modal").modal();
|
||||
if ($(e.target).attr('class') !== 'select2-selection__choice__remove'){
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
$("#asset_list_modal").modal();
|
||||
}
|
||||
})
|
||||
})
|
||||
.on('click', '#btn_asset_modal_confirm', function () {
|
||||
|
Reference in New Issue
Block a user