This commit is contained in:
labcode-de 2018-01-30 12:49:32 +01:00
parent 242c61a2f7
commit 34f147d4b3
No known key found for this signature in database
GPG Key ID: 9CDB093B80490C2F
2 changed files with 5 additions and 5 deletions

View File

@ -13,13 +13,13 @@ function change (origin, select) {
.material_select()
var modelle = []
for (var i = 0; i < anzahl_hersteller; i++) {
if ($(select).find('option:selected').html() == herstellername[i]) {
if ($(select).find('option:selected').html() === herstellername[i]) {
var j = 0
while (j < router_json.length) {
if (router_json[j].hersteller == herstellername[i]) {
if (router_json[j].hersteller === herstellername[i]) {
modelle[j] = router_json[j].modell
if (j < router_json.length - 1) {
while (router_json[j].modell == router_json[j + 1].modell) {
while (router_json[j].modell === router_json[j + 1].modell) {
if (j < router_json.length - 1) {
j++
} else {

View File

@ -56,9 +56,9 @@ $community_id = $_REQUEST['id'];
</div>
<?php endfor ?>
<div class="col s12">
<h5>Stadtteilauswahl</h5>
<h5>Auswahl Stadtteilnetz</h5>
<select id="stadtteil" onchange="change('stadtteil', this)">
<option disabled selected value="">Stadtteil ausw&auml;hlen</option>
<option disabled selected value="">Stadtteilnetz ausw&auml;hlen</option>
<?php foreach ($community[$community_id]["sub_auswahl"] as $value): ?>
<option value="<?php echo $value ?>"><?php echo $community[$value]['name']?></option>
<?php endforeach ?>