clean dep list after create

This commit is contained in:
Reinier Balt 2011-02-12 22:54:02 +01:00
parent 1f67d2a603
commit 2444198674
2 changed files with 7 additions and 0 deletions

View file

@ -17,6 +17,7 @@
function clear_form() {
$('#todo-form-new-action').clearForm();
$('#todo-form-new-action').clearDeps();
TracksForm.set_context_name('<%=@initial_context_name%>');
TracksForm.set_project_name('<%=@initial_project_name%>');
TracksForm.set_tag_list('<%=@default_tags%>');

View file

@ -764,6 +764,12 @@ $.fn.clearForm = function() {
});
};
$.fn.clearDeps = function() {
$('ul#predecessor_ul', this).hide();
$('ul#predecessor_ul', this).html("");
$('input[name=predecessor_list]').val("");
}
/**************************************/
/* Tracks AJAX functions */
/**************************************/