aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/static/objecteditor.js
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-01 16:37:45 -0400
committerhistoria <[not public]>2026-07-01 16:37:45 -0400
commite6b4cb9f5816c6ee239233bc85f74ee446a161c2 (patch)
tree1c3bf71c8b7f095baae989afe5e33183a7ed3929 /internal/admin/static/objecteditor.js
parent649ef4b7416ce7053145878841fc9b0bff2f5fec (diff)
downloadthehouseoficarus-e6b4cb9f5816c6ee239233bc85f74ee446a161c2.tar.gz
feat: shop system overhauled, gui conversation tree editor overhauled
Diffstat (limited to 'internal/admin/static/objecteditor.js')
-rw-r--r--internal/admin/static/objecteditor.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/admin/static/objecteditor.js b/internal/admin/static/objecteditor.js
index c2374a7..4d02295 100644
--- a/internal/admin/static/objecteditor.js
+++ b/internal/admin/static/objecteditor.js
@@ -775,9 +775,14 @@ function saveObject() {
out.id = objectID;
- API.put('/api/objects/' + encodeURIComponent(objectID), out).then(function() {
+ API.put('/api/objects/' + encodeURIComponent(objectID), out).then(function(resp) {
notify('Object ' + objectID + ' saved', 'success');
updateUndoBar();
+ if (resp && resp._raw) {
+ objectData._raw = resp._raw;
+ var pre = document.querySelector('#tabYaml pre');
+ if (pre) pre.textContent = objectData._raw;
+ }
}).catch(function(e) { notify('Save failed: ' + e.message, 'error'); });
}