socket logic for #1149 -- handling of help tab in ACP

This commit is contained in:
Julian Lam
2014-05-10 23:43:15 -04:00
parent f65998f4c2
commit 65dd79c84e
2 changed files with 14 additions and 2 deletions

View File

@@ -819,7 +819,7 @@ define(['taskbar'], function(taskbar) {
});
socket.emit('modules.composer.renderHelp', function(err, html) {
if (html && html.length > 0) {
if (!err && html && html.length > 0) {
postContainer.find('.help').html(html);
postContainer.find('[data-pane=".tab-help"]').parent().removeClass('hidden');
}