From 60dfed79c1c2c867598ed74f84782273577aaa8e Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Tue, 25 Jun 2013 12:20:40 +0100 Subject: [PATCH 1/3] Fixed Reply locking New Topic title edit --- public/src/modules/composer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index ff8bb675ab..fced52687b 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -10,7 +10,7 @@ define(['taskbar'], function(taskbar) { composer.init = function() { // Create the fixed bottom bar var taskbar = document.getElementById('taskbar'); - + composer.postContainer = document.createElement('div'); composer.postContainer.className = 'post-window row-fluid'; composer.postContainer.innerHTML = '
' + @@ -151,6 +151,9 @@ 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) { From 719dedd72b5bee67fc99abafcd5eefbc1fc8d1c3 Mon Sep 17 00:00:00 2001 From: Matt Smith Date: Tue, 25 Jun 2013 15:54:33 +0100 Subject: [PATCH 2/3] Moved reply topic unlock --- public/src/modules/composer.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 From 619fc7d9822da1a35a208ed1730d5f1eda422283 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 25 Jun 2013 14:49:09 -0400 Subject: [PATCH 3/3] prevent hero unit text from breaking mobile layout if its too long --- public/css/style.less | 1 + 1 file changed, 1 insertion(+) diff --git a/public/css/style.less b/public/css/style.less index 71e05e21f7..751e1dfe38 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -320,6 +320,7 @@ footer.footer { background: #56BCDA; color: white; padding: 30px; + word-wrap: break-word; } .users-box{