Fix auto-completion for forms that are inserted with JS
This commit is contained in:
parent
e4aa5a5c8f
commit
4d843d2ce1
2 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@ function switchToNewIssue(form){
|
|||
$("#new_issue_dialog").show("fade", { direction: "right" }, 150);
|
||||
$('.top-tabs .add_new').hide();
|
||||
disableButtonIfEmptyField("#issue_title", ".save-btn");
|
||||
setupGfmAutoComplete();
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -17,6 +18,7 @@ function switchToEditIssue(form){
|
|||
$("#edit_issue_dialog").show("fade", { direction: "right" }, 150);
|
||||
$('.add_new').hide();
|
||||
disableButtonIfEmptyField("#issue_title", ".save-btn");
|
||||
setupGfmAutoComplete();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -10,4 +10,5 @@
|
|||
- else
|
||||
:plain
|
||||
$(".note-form-holder").replaceWith("#{escape_javascript(render 'form')}");
|
||||
setupGfmAutoComplete();
|
||||
|
||||
|
|
Loading…
Reference in a new issue