Mercurial > hg > LGToc
changeset 15:e4c5f9cf66cb
block if lost session
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 24 Jun 2015 17:18:09 +0200 |
parents | 6ea0f9030f72 |
children | 0bbf7b85d005 |
files | js/check_sections_details.js |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
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){