From 73c89010cba10378e35d4f8be891c7583a4ce5a1 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 9 Mar 2014 17:29:05 -0400 Subject: [PATCH] closes #1182 --- public/src/forum/admin/themes.js | 120 +++++++++++++++++------------- public/templates/admin/themes.tpl | 9 ++- src/meta.js | 16 ++-- src/routes/api.js | 1 + 4 files changed, 81 insertions(+), 65 deletions(-) diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.js index d5873a7164..14408bbce6 100644 --- a/public/src/forum/admin/themes.js +++ b/public/src/forum/admin/themes.js @@ -1,43 +1,53 @@ define(['forum/admin/settings'], function(Settings) { var Themes = {}; + function highlightSelectedTheme(themeId) { + $('#themes li[data-theme]').removeClass('btn-warning'); + $('#themes li[data-theme="' + themeId + '"]').addClass('btn-warning'); + } + Themes.init = function() { var scriptEl = $('