Commit 6b6bd977 by Chif Gergő

dashboard: Fix focusin on template ownership

Remove focusin event from the template transfer ownership.
parent 5bec4eda
Pipeline #677 passed with stage
in 0 seconds
......@@ -42,7 +42,7 @@ $(function() {
$('#confirmation-modal').remove();
});
$('#confirmation-modal').on('shown.bs.modal', function() {
$(document).off('focusin.modal');
$(document).off('focusin.modal');
});
$('#vm-migrate-node-list li input:checked').closest('li').addClass('panel-primary');
......@@ -51,6 +51,7 @@ $(function() {
e.preventDefault();
});
/* if the operation fails show the modal again */
$("body").on("click", "#confirmation-modal #op-form-send", function() {
var url = $(this).closest("form").prop("action");
......
......@@ -40,6 +40,10 @@ $(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) {
......
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