Skip to content
Snippets Groups Projects
Commit 7f69c07d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '136-exiting-edit-page-without-saving' into 'master'

data change should only be recognized when input is in a form

Closes #136

See merge request !57
parents 7e861cce b9d08d86
No related branches found
Tags v4.5.0
1 merge request!57data change should only be recognized when input is in a form
Pipeline #
......@@ -12,7 +12,9 @@ $(document).ready(function () {
var formDataChanged = false;
$(":input", this).change(function () {
formDataChanged = true;
if (this.form !== undefined && this.form !== null) {
formDataChanged = true;
}
});
$('.main-sidebar a').click(function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment