Skip to content

Commit

Permalink
[Update] 修复无法取消授权资产的前端bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuler committed Sep 11, 2018
1 parent 88a29c0 commit 6dc2272
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,19 @@ <h3>{% trans 'Other' %}</h3>
closeOnSelect: false
});
$('#datepicker').datepicker({
format: "yyyy-mm-dd",
format: "yyyy-mm-dd HH:mm",
todayBtn: "linked",
keyboardNavigation: false,
forceParse: false,
calendarWeeks: true,
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 () {
Expand Down
2 changes: 1 addition & 1 deletion jms
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def start_gunicorn():
cmd = [
'gunicorn', 'jumpserver.wsgi',
'-b', bind,
'-k', 'eventlet',
#'-k', 'eventlet',
'-w', str(WORKERS),
'--access-logformat', log_format,
'-p', pid_file,
Expand Down

0 comments on commit 6dc2272

Please sign in to comment.