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: gmcharlt@gmail.com Reporter: vfernandes@keep.pt QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Add a warning about unsaved changes when exiting the cataloguing (addbiblio.pl) page. http://stackoverflow.com/questions/11844256/alert-for-unsaved-changes-in-for... 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.