Commit 4d843d2c authored by Riyad Preukschas's avatar Riyad Preukschas

Fix auto-completion for forms that are inserted with JS

parent e4aa5a5c
...@@ -6,6 +6,7 @@ function switchToNewIssue(form){ ...@@ -6,6 +6,7 @@ function switchToNewIssue(form){
$("#new_issue_dialog").show("fade", { direction: "right" }, 150); $("#new_issue_dialog").show("fade", { direction: "right" }, 150);
$('.top-tabs .add_new').hide(); $('.top-tabs .add_new').hide();
disableButtonIfEmptyField("#issue_title", ".save-btn"); disableButtonIfEmptyField("#issue_title", ".save-btn");
setupGfmAutoComplete();
}); });
} }
...@@ -17,6 +18,7 @@ function switchToEditIssue(form){ ...@@ -17,6 +18,7 @@ function switchToEditIssue(form){
$("#edit_issue_dialog").show("fade", { direction: "right" }, 150); $("#edit_issue_dialog").show("fade", { direction: "right" }, 150);
$('.add_new').hide(); $('.add_new').hide();
disableButtonIfEmptyField("#issue_title", ".save-btn"); disableButtonIfEmptyField("#issue_title", ".save-btn");
setupGfmAutoComplete();
}); });
} }
......
...@@ -10,4 +10,5 @@ ...@@ -10,4 +10,5 @@
- else - else
:plain :plain
$(".note-form-holder").replaceWith("#{escape_javascript(render 'form')}"); $(".note-form-holder").replaceWith("#{escape_javascript(render 'form')}");
setupGfmAutoComplete();
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 to comment