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

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

parent 8ce87d0b
No related branches found
No related tags found
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