Improved wording.

This commit is contained in:
Martin Edenhofer 2018-01-23 11:25:54 +01:00
parent ff93c7f22c
commit 85b9875714

View file

@ -824,7 +824,7 @@ class App.ControllerModal extends App.Controller
localOnClose: (e) => localOnClose: (e) =>
diff = difference(@initalFormParams, @formParams()) diff = difference(@initalFormParams, @formParams())
if @initalFormParamsIgnore is false && !_.isEmpty(diff) if @initalFormParamsIgnore is false && !_.isEmpty(diff)
if !confirm(App.i18n.translateContent('The form content has been changed, discarded changes?')) if !confirm(App.i18n.translateContent('The form content has been changed. Do you want to close it and lose your changes?'))
e.preventDefault() e.preventDefault()
return return
@onClose(e) @onClose(e)