mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-27 04:18:49 +01:00
clean dep list after create
This commit is contained in:
parent
1f67d2a603
commit
2444198674
2 changed files with 7 additions and 0 deletions
|
|
@ -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%>');
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
/**************************************/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue