continue nameseditor
This commit is contained in:
parent
29b6d3fd27
commit
c81b02546f
@ -117,6 +117,9 @@
|
|||||||
<Content Include="resources\icons\general\edit.png">
|
<Content Include="resources\icons\general\edit.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
<Content Include="resources\icons\general\icon_edit.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Content>
|
||||||
<Content Include="resources\icons\general\remove.png">
|
<Content Include="resources\icons\general\remove.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
|
@ -72,7 +72,7 @@ var NamesEditor = {
|
|||||||
var newrow = document.createElement("tr");
|
var newrow = document.createElement("tr");
|
||||||
newrow.innerHTML = "<td><input class='name'/></td>";
|
newrow.innerHTML = "<td><input class='name'/></td>";
|
||||||
newrow.innerHTML += "<td><input /></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>";
|
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);
|
document.getElementById("nametable").children[1].appendChild(newrow);
|
||||||
},
|
},
|
||||||
@ -93,6 +93,15 @@ var NamesEditor = {
|
|||||||
el.parentNode.removeChild(el);
|
el.parentNode.removeChild(el);
|
||||||
},
|
},
|
||||||
SaveRow: function (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");
|
||||||
}
|
}
|
||||||
};
|
};
|
BIN
Lora-Map/resources/icons/general/icon_edit.png
Normal file
BIN
Lora-Map/resources/icons/general/icon_edit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 746 B |
Loading…
Reference in New Issue
Block a user