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
...@@ -51,6 +51,7 @@ $(function() { ...@@ -51,6 +51,7 @@ $(function() {
e.preventDefault(); e.preventDefault();
}); });
/* if the operation fails show the modal again */ /* if the operation fails show the modal again */
$("body").on("click", "#confirmation-modal #op-form-send", function() { $("body").on("click", "#confirmation-modal #op-form-send", function() {
var url = $(this).closest("form").prop("action"); var url = $(this).closest("form").prop("action");
......
...@@ -40,6 +40,10 @@ $(function () { ...@@ -40,6 +40,10 @@ $(function () {
modal.on('hidden.bs.modal', function() { modal.on('hidden.bs.modal', function() {
modal.remove(); modal.remove();
}); });
modal.on('shown.bs.modal', function() {
$(document).off('focusin.modal');
});
}, },
error: function(xhr, textStatus, error) { error: function(xhr, textStatus, error) {
if(xhr.status === 403) { 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