Commit 6662a20b authored by Leigh Stoller's avatar Leigh Stoller

Do not rely on just .change() method to see if a form has been

modified, also look at .on("input) which is fired immediately upon
typing in a field.
parent 37e92601
......@@ -169,6 +169,13 @@ $(function () {
}
form_modified = true;
});
$(form + ' :input').on("input", function () {
//console.info("changed");
if (modified_callback) {
modified_callback();
}
form_modified = true;
});
// Warn user if they have not saved changes.
$(window).on('beforeunload.portal',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment