diff --git a/furgaclient/www/js/spesefurga.js b/furgaclient/www/js/spesefurga.js index 43fa26b..72fa3b4 100644 --- a/furgaclient/www/js/spesefurga.js +++ b/furgaclient/www/js/spesefurga.js @@ -146,9 +146,11 @@ function initStorage() { function initProgetto() { if (initStorage()) + // localStorage.setItem("key_progetto", null) if (localStorage.getItem("key_progetto") == null) { $('#prog-0').addClass('hide'); $('#newprog').removeClass('hide'); + return false; } if (localStorage.getItem("key_progetto") != null) @@ -156,6 +158,7 @@ function initProgetto() { scrivoNome(); $('#prog-0').removeClass('hide'); $('#newprog').addClass('hide'); + return true; } function toggleNewOldProg() {