MAPG-231 introduce unlisted maps

This commit is contained in:
bence committed 2022-05-26 14:23:08 +02:00
1 parent 4f45e213c3
commit d02aa4abe0
8 files changed
+39 -4

No files matched your search

+4
View File
@@ -18,6 +18,7 @@
MapEditor.metadata.name = form.elements.name.value;
MapEditor.metadata.description = form.elements.description.value;
MapEditor.metadata.unlisted = form.elements.unlisted.checked;
document.getElementById('mapName').innerHTML = form.elements.name.value ? form.elements.name.value : '[unnamed map]';
@@ -254,6 +255,9 @@
if (MapEditor.metadata.description !== null) {
data.append('description', MapEditor.metadata.description);
}
if (MapEditor.metadata.unlisted !== null) {
data.append('unlisted', MapEditor.metadata.unlisted);
}
for (var placeId in MapEditor.added) {
if (!MapEditor.added.hasOwnProperty(placeId)) {