KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
| Zeile 40: | Zeile 40: | ||
var address=[]; | var address=[]; | ||
$('.DHDGlyph').click(function(){ | $('.DHDGlyph').click(function(){ | ||
var GNum=$(this).attr('id').substr(4,2); | |||
if($.inArray(GNum, address)==-1){ | if($.inArray(GNum, address)==-1){ | ||
if(counter>8){ | if(counter>8){ | ||
| Zeile 45: | Zeile 46: | ||
}else{ | }else{ | ||
counter++; | counter++; | ||
if(!inProgress){ | if(!inProgress){ | ||
$('.DHDResult').text("Du musst sieben (oder mehr) Symbole anwählen und dann mit der roten Mittelscheibe bestätigen. Ausgewählte Symbole:"); | $('.DHDResult').text("Du musst sieben (oder mehr) Symbole anwählen und dann mit der roten Mittelscheibe bestätigen. Ausgewählte Symbole:"); | ||
| Zeile 51: | Zeile 51: | ||
inProgress=true; | inProgress=true; | ||
} | } | ||
$(".DHDResList li:nth-child("+counter+")").text(GNum+" ( | $(".DHDResList li:nth-child("+counter+")").text(GNum+" ").append($("<span>").addClass("DHDDButton").css('cursor','pointer').attr('id','DHDDButton'+counter).text("(Löschen)")); | ||
address.push(GNum); | address.push(GNum); | ||
} | } | ||