# HG changeset patch # User Zoe Hong # Date 1435159089 -7200 # Node ID e4c5f9cf66cbcce563941d740f4fe2ad627fc2f7 # Parent 6ea0f9030f72f89f225e134dc5fe69e86a4606c0 block if lost session diff -r 6ea0f9030f72 -r e4c5f9cf66cb js/check_sections_details.js --- 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){