From 0afc9a6e3b2782d1809da10a55d247602a7bad8a Mon Sep 17 00:00:00 2001 From: redup nomade Date: Sun, 11 Dec 2016 23:19:49 +0100 Subject: [PATCH] name null toggle class button --- furgaclient/www/js/spesefurga.js | 3 +++ 1 file changed, 3 insertions(+) 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() {