From 53285d70a94ca6a3c4c0708d4fc0e3e035d11e2f Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 1 Feb 2014 22:38:52 -0500 Subject: [PATCH] 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 @@ +