From 8ac7ccb4f85188d8bbb90922f7d7df7630b2ff7d Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 1 Feb 2014 14:59:45 -0500 Subject: [PATCH 1/3] calling auth immediately after client connection (apparently, not doing so throws errors on install?) --- src/database/redis.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/database/redis.js b/src/database/redis.js index ca4e1bdcbf..0ed1f330a6 100644 --- a/src/database/redis.js +++ b/src/database/redis.js @@ -30,6 +30,10 @@ redisClient = redis.createClient(nconf.get('redis:port'), nconf.get('redis:host')); } + if (nconf.get('redis:password')) { + redisClient.auth(nconf.get('redis:password')); + } + redisClient.on('error', function (err) { winston.error(err.message); process.exit(); @@ -51,10 +55,6 @@ postSearch = reds.createSearch('nodebbpostsearch'), topicSearch = reds.createSearch('nodebbtopicsearch'); - if (nconf.get('redis:password')) { - redisClient.auth(nconf.get('redis:password')); - } - var db = parseInt(nconf.get('redis:database'), 10); if (db){ From 53285d70a94ca6a3c4c0708d4fc0e3e035d11e2f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 1 Feb 2014 22:38:52 -0500 Subject: [PATCH 2/3] just sneaking tabIndent into NodeBB core -- nothing to see here... --- public/src/forum/admin/themes.js | 5 + public/templates/admin/header.tpl | 1 + public/vendor/tabIndent/tabIndent.js | 252 +++++++++++++++++++++++++++ 3 files changed, 258 insertions(+) create mode 100644 public/vendor/tabIndent/tabIndent.js diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.js index 636edd2680..699796e36b 100644 --- a/public/src/forum/admin/themes.js +++ b/public/src/forum/admin/themes.js @@ -97,6 +97,11 @@ define(['forum/admin/settings'], function(Settings) { instListEl.appendChild(themeFrag); }); + // Proper tabbing for "Custom CSS" field + var customCSSEl = $('textarea[data-field]')[0]; + tabIndent.config.tab = ' '; + tabIndent.render(customCSSEl); + Settings.prepare(); } diff --git a/public/templates/admin/header.tpl b/public/templates/admin/header.tpl index 5ea25324ed..211c27046d 100644 --- a/public/templates/admin/header.tpl +++ b/public/templates/admin/header.tpl @@ -24,6 +24,7 @@ +