From 7dcad9dc316d98b7552987d91e616aee40226b56 Mon Sep 17 00:00:00 2001 From: Kato Twofold Date: Tue, 7 Jun 2022 00:16:27 +0300 Subject: [PATCH] * Archive Fix --- static/js/pad-scripts.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/pad-scripts.js b/static/js/pad-scripts.js index 3190d98..cb355e9 100644 --- a/static/js/pad-scripts.js +++ b/static/js/pad-scripts.js @@ -138,7 +138,10 @@ function renderArchivesSelection() { let resp = confirm("Load contents of pad from memory? This will overwrite the current pad for everyone."); if (!!resp) { - document.getElementById(`pad-content`).value = a.content; + // Update visually for the client + updatePadContent(a.content); + // Send the update + window.socket.sendPadUpdate(); } })