Mercurial > hg > LGToc
diff 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 |
line wrap: on
line diff
--- a/js/check_sections_details.js Wed Jun 24 16:50:32 2015 +0200 +++ b/js/check_sections_details.js Wed Jun 24 17:18:09 2015 +0200 @@ -8,7 +8,12 @@ initInsert(); initConfigure(); initSave(version); - $("#loading").hide(); + if($("#saveBook .editor").val() == ""){ + $("#loading").show(); + } else { + $("#loading").hide(); + } + }); window.onbeforeunload = function() { if(saving==0){