name null toggle class button

This commit is contained in:
redup nomade 2016-12-11 23:19:49 +01:00
parent d3c25d42fc
commit 0afc9a6e3b

View file

@ -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() {