modificato nome progetto

This commit is contained in:
redup nomade 2016-12-10 22:11:14 +01:00
parent 8933c90361
commit d4762f5ab4
2 changed files with 19 additions and 5 deletions

View file

@ -45,6 +45,9 @@
//$(function(){
$( document ).on( "mobileinit", function(){
$("#popup").popup();
$( ".list" ).listview({
defaults: true
});
});
/*$.mobile.document.on("click", "#open-popup", function (evt) {
$("#popup").popup("open", {
@ -121,9 +124,9 @@
<!-- /collapsible -->
<h3 class="ui-bar ui-bar-a">Progetti condivisi</h3>
<ul data-role="listview" data-inset="true" data-shadow="false">
<ul data-role="listview" data-inset="true" data-shadow="false" class="list">
<li data-role="collapsible" data-iconpos="right" data-inset="false">
<h2 data-id="0" id="prog-0" class="prog-name">furga</h2>
<h2 data-id="0" id="prog-0" >furga</h2>
<ul data-role="listview" data-theme="a">
<li><a href="#impostazioni">Impostazioni</a></li>
<li><a href="#giorni">Giorni</a></li>
@ -160,7 +163,7 @@
<h3>Cambia nome</h3>
<label for="p-name" class="ui-hidden-accessible">Nome:</label>
<input name="pass" id="p-name" value="" placeholder="camper Ada" data-theme="a" type="text">
<a href="#" id="setname" class="ui-btn ui-corner-all ui-shadow ui-btn-b ui-btn-icon-left ui-icon-check">Fatto</a >
<a href="#" id="setname" onclick="cambianomeprogetto();" class="ui-btn ui-corner-all ui-shadow ui-btn-b ui-btn-icon-left ui-icon-check">Fatto</a >
</div>
</form>
</div>

View file

@ -1,4 +1,4 @@
var prog_name=["furgabbb"];
var prog_name=["furgahhh"];
var prog_data=[]; //serve?
var prog_indice=0; //serve?
@ -144,7 +144,7 @@ function initProgetto() {
console.log(prog_name+"nome progetto");
$('.prog-name').text(prog_name);
$('#prog-0').text(prog_name);
}
$( function(){
@ -153,3 +153,14 @@ initStorage();
initProgetto();
});
function cambianomeprogetto(){
prog_name = $("#p-name").val();
$('.prog-name').text(prog_name);
$('#prog-0').text(prog_name);
}
//function cambiavalore(id,ghdjak)