From aab58d55079df9aa17a3ad2e8911a85a384065fa Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Mon, 11 May 2015 12:48:52 +0200 Subject: [PATCH] load the buttons if the location checkbox is un-checked --- views/appcache.php | 2 +- views/new-post.php | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/views/appcache.php b/views/appcache.php index 8b883d6..eccfd45 100644 --- a/views/appcache.php +++ b/views/appcache.php @@ -12,4 +12,4 @@ CACHE MANIFEST NETWORK: * -# v25 +# v28 diff --git a/views/new-post.php b/views/new-post.php index fbd3716..4754ae9 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -168,6 +168,11 @@ $(function(){ $("#note_location").val(''); set_location_enabled(false); + + // Load the buttons now + // This is for when the browser is taking too long to find location, + // the user might un-check the box + load_entry_buttons(); } }); @@ -213,7 +218,7 @@ $(function(){ // Show the notice that says there is a new version of the app $("#new_version_available").show(); } - + window.applicationCache.addEventListener('updateready', onUpdateReady); if(window.applicationCache.status === window.applicationCache.UPDATEREADY) { onUpdateReady();