fix on deletion

This commit is contained in:
Marion Muszynski 2016-11-30 12:58:26 +01:00
parent 284aeb5903
commit 98a00dc459

View File

@ -377,7 +377,7 @@ function delAccessory(id)
input.value += inputCut[i] + '-';
name.value += nameCut[i] + '¤';
img.value += imgCut[i] + ';';
div.innerHTML += '<img src="/img/p/'+imgCut[i]+'-small.jpg" /> '+nameCut[i] + ' <span onclick="delAccessory(' + inputCut[i] + ');" style="cursor: pointer;"><img src="../img/admin/delete.gif" /></span><br />';
div.innerHTML += '<img src="'+imgCut[i]+'" /> '+nameCut[i] + ' <span onclick="delAccessory(' + inputCut[i] + ');" style="cursor: pointer;"><img src="../img/admin/delete.gif" /></span><br />';
}
else
$('#selectAccessories').append('<option selected="selected" value="' + inputCut[i] + '-' + nameCut[i] + '">' + inputCut[i] + ' - ' + nameCut[i] + '</option>');