Skip to content

Node.js based forum software built for the modern web

Moved reply topic unlock

Matt Smith719dedd72b5b
diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js
index fced52687b..52e192a843 100644
--- a/public/src/modules/composer.js
+++ b/public/src/modules/composer.js
@@ -151,9 +151,6 @@ define(['taskbar'], function(taskbar) {
pid: pid, // Editing
body: text // Predefined text
});
- // Regardless of success or failure, this should be set back to false so new topics can have their title set
- var titleEl = composer.postContainer.querySelector('input');
- titleEl.readOnly = false;
}
composer.load = function(post_uuid) {
@@ -173,6 +170,7 @@ define(['taskbar'], function(taskbar) {
socket.emit('api:composer.editCheck', post_data.pid);
} else {
titleEl.value = post_data.title;
+ titleEl.readOnly = false;
}
bodyEl.value = post_data.body