[Koha-bugs] [Bug 14473] New: Warning unsaved changes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 29 19:06:57 CEST 2015
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 at gmail.com
Reporter: vfernandes at keep.pt
QA Contact: testopia at bugs.koha-community.org
CC: m.de.rooy at 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-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.
More information about the Koha-bugs
mailing list