http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14473
Bug ID: 14473
Summary: Warning unsaved changes
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Cataloging
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
Add a warning about unsaved changes when exiting the cataloguing (addbiblio.pl)
page.
http://stackoverflow.com/questions/11844256/alert-for-unsaved-changes-in-form
Possible code:
var unsaved = false;
$(":input").change(function(){ //trigers change in all input fields including
text type
unsaved = true;
});
function unloadPage(){
if(unsaved){
return "You have unsaved changes on this page. Do you want to leave
this page and discard your changes or stay on this page?";
}
}
window.onbeforeunload = unloadPage;
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/