Moved reply topic unlock

This commit is contained in:
Matt Smith
2013-06-25 15:54:33 +01:00
parent 60dfed79c1
commit 719dedd72b

View File

@@ -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