continue nameseditor

This commit is contained in:
BlubbFish 2019-04-09 18:26:47 +02:00
parent 29b6d3fd27
commit c81b02546f
3 changed files with 14 additions and 2 deletions

View File

@ -117,6 +117,9 @@
<Content Include="resources\icons\general\edit.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="resources\icons\general\icon_edit.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="resources\icons\general\remove.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

View File

@ -72,7 +72,7 @@ var NamesEditor = {
var newrow = document.createElement("tr");
newrow.innerHTML = "<td><input class='name'/></td>";
newrow.innerHTML += "<td><input /></td>";
newrow.innerHTML += "<td>wähle Icon</td>";
newrow.innerHTML += "<td><img src='../icons/general/icon_edit.png' onclick='NamesEditor.IconEditor(this.parentNode)' class='pointer'> wähle Icon</td>";
newrow.innerHTML += "<td><img src='../icons/general/save.png' onclick='NamesEditor.SaveRow(this.parentNode.parentNode)' class='pointer'> <img src='../icons/general/remove.png' onclick='NamesEditor.Abort(this.parentNode.parentNode)' class='pointer'></td>";
document.getElementById("nametable").children[1].appendChild(newrow);
},
@ -93,6 +93,15 @@ var NamesEditor = {
el.parentNode.removeChild(el);
},
SaveRow: function (el) {
alert("Save Row");
var id = el.children[0].children[0].value;
var name = el.children[1].children[0].value;
alert("Save Row: id: " + id + " name: " + name);
},
IconEditor: function (el) {
var url = "";
if (el.children.length == 2) {
}
alert("icon editor");
}
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 746 B