Commit e480328f by Chif Gergő

dashboard: Fix the modal input focus bug

The transfer ownership input in the modal now works properly. Instead of local solution now use a global method what overrides bootsrap enforce focus.
parent 6b6bd977
......@@ -41,9 +41,6 @@ $(function() {
$('#confirmation-modal').on('hidden.bs.modal', function() {
$('#confirmation-modal').remove();
});
$('#confirmation-modal').on('shown.bs.modal', function() {
$(document).off('focusin.modal');
});
$('#vm-migrate-node-list li input:checked').closest('li').addClass('panel-primary');
}
......
......@@ -40,10 +40,6 @@ $(function () {
modal.on('hidden.bs.modal', function() {
modal.remove();
});
modal.on('shown.bs.modal', function() {
$(document).off('focusin.modal');
});
},
error: function(xhr, textStatus, error) {
if(xhr.status === 403) {
......@@ -562,3 +558,5 @@ $(function() {
inputs.prop("checked", !inputs.prop("checked"));
});
});
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment