Fix auto-completion for forms that are inserted with JS

This commit is contained in:
Riyad Preukschas 2012-10-09 23:54:14 +02:00
parent e4aa5a5c8f
commit 4d843d2ce1
2 changed files with 3 additions and 0 deletions

View file

@ -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();
});
}

View file

@ -10,4 +10,5 @@
- else
:plain
$(".note-form-holder").replaceWith("#{escape_javascript(render 'form')}");
setupGfmAutoComplete();