Content
View differences
Updated by Jens Ulferts over 9 years ago
The following line sets wiki-textareas to dirty/changed immediately after their creation, resulting in the ‘confirm unsaved changes’ dialog in the force edit mode, even when no data has been entered.
Additionally, the dialog is not shown when the cancel button is shown. This is somewhat inconsistent and I suggest that we correct both these behaviors.
More information:
Relevant line that sets the textarea to changed: https://github.com/opf/openproject/blob/dev/frontend/app/components/inplace-edit/directives/field-edit/edit-wiki-textarea/edit-wiki-textarea.directive.js\#L48
Additionally, the dialog is not shown when the cancel button is shown. This is somewhat inconsistent and I suggest that we correct both these behaviors.
More information:
Relevant line that sets the textarea to changed: https://github.com/opf/openproject/blob/dev/frontend/app/components/inplace-edit/directives/field-edit/edit-wiki-textarea/edit-wiki-textarea.directive.js\#L48