Changeset 32440 for main/trunk/greenstone3/web/interfaces
- Timestamp:
- 2018-09-11T13:07:11+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/documentedit_scripts_util.js
r32134 r32440 29 29 // jquery bind() is deprecated: https://stackoverflow.com/questions/33654716/is-jquery-bind-deprecated 30 30 $(window).on("beforeunload", function(event) { 31 31 32 if(gs.cgiParams.docEdit == "1") { // like document.xsl, which checks the same var upon onload 32 33 // shouldn't check for whether changes are saved unless on Doc Editing page (DocEdit=1) … … 36 37 37 38 if(changes.length > 0) { 39 console.log("The collection hasn't yet been saved after editing. Are you sure you want to leave?"); 38 40 return "The collection hasn't yet been saved after editing. Are you sure you want to leave?"; 39 41 } 40 41 42 } 42 43
Note:
See TracChangeset
for help on using the changeset viewer.