Skip to content
Snippets Groups Projects

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

Merged Piotr Gawron requested to merge 136-exiting-edit-page-without-saving into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -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 () {
Loading