mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-21 01:30:12 +01:00
fix #1149 where submitting a dependency that does not exist will show a warning that it will be ignored
This commit is contained in:
parent
7f27a6e2bd
commit
79cb34e105
5 changed files with 692 additions and 686 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue