fix #1149 where submitting a dependency that does not exist will show a warning that it will be ignored

This commit is contained in:
Reinier Balt 2011-04-30 20:46:47 +02:00
parent 7f27a6e2bd
commit 79cb34e105
5 changed files with 692 additions and 686 deletions

View file

@ -76,6 +76,9 @@ var TracksForm = {
/* submit todo form after entering new todo */
$("button#todo_new_action_submit").live('click', function (ev) {
if ($('input#predecessor_input').val() != "")
if (!confirm(i18n['todos.unresolved_dependency']))
return false;
if (TodoItems.askIfNewContextProvided('', this))
submit_with_ajax_and_block_element('form#todo-form-new-action', $(this));
return false;