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
|
|
@ -252,7 +252,7 @@ module ApplicationHelper
|
||||||
contexts.show_form contexts.show_form_title
|
contexts.show_form contexts.show_form_title
|
||||||
contexts.new_context_pre contexts.new_context_post
|
contexts.new_context_pre contexts.new_context_post
|
||||||
common.cancel common.ok
|
common.cancel common.ok
|
||||||
common.ajaxError
|
common.ajaxError todos.unresolved_dependency
|
||||||
}.each do |s|
|
}.each do |s|
|
||||||
js << "i18n['#{s}'] = '#{ t(s).gsub(/'/, "\\\\'") }';\n"
|
js << "i18n['#{s}'] = '#{ t(s).gsub(/'/, "\\\\'") }';\n"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -421,6 +421,7 @@ en:
|
||||||
contexts: Contexts
|
contexts: Contexts
|
||||||
projects: Projects
|
projects: Projects
|
||||||
todos:
|
todos:
|
||||||
|
unresolved_dependency: "The value you entered in the dependency field did not resolve to an existing action. This value will not be saved with the rest of the action. Continue?"
|
||||||
action_saved: "Action saved"
|
action_saved: "Action saved"
|
||||||
recurring_action_saved: "Recurring action saved"
|
recurring_action_saved: "Recurring action saved"
|
||||||
action_saved_to_tickler: "Action saved to tickler"
|
action_saved_to_tickler: "Action saved to tickler"
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -76,6 +76,9 @@ var TracksForm = {
|
||||||
|
|
||||||
/* submit todo form after entering new todo */
|
/* submit todo form after entering new todo */
|
||||||
$("button#todo_new_action_submit").live('click', function (ev) {
|
$("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))
|
if (TodoItems.askIfNewContextProvided('', this))
|
||||||
submit_with_ajax_and_block_element('form#todo-form-new-action', $(this));
|
submit_with_ajax_and_block_element('form#todo-form-new-action', $(this));
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue