comparison js/check_sections_details.js @ 15:e4c5f9cf66cb

block if lost session
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Wed, 24 Jun 2015 17:18:09 +0200
parents 0a03c75499e6
children 2e6bf16b0be3
comparison
equal deleted inserted replaced
14:6ea0f9030f72 15:e4c5f9cf66cb
6 initLevel(); 6 initLevel();
7 initDelete(); 7 initDelete();
8 initInsert(); 8 initInsert();
9 initConfigure(); 9 initConfigure();
10 initSave(version); 10 initSave(version);
11 $("#loading").hide(); 11 if($("#saveBook .editor").val() == ""){
12 $("#loading").show();
13 } else {
14 $("#loading").hide();
15 }
16
12 }); 17 });
13 window.onbeforeunload = function() { 18 window.onbeforeunload = function() {
14 if(saving==0){ 19 if(saving==0){
15 return 'Remember to save your revision.'; 20 return 'Remember to save your revision.';
16 }else{ 21 }else{