From 39d9dd76dc5a28990f07b7123d600c5bdba8e112 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 20 Jan 2014 21:15:52 -0500 Subject: [PATCH] removed preview button from ACP/themes --- public/src/forum/admin/themes.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/public/src/forum/admin/themes.js b/public/src/forum/admin/themes.js index 7c0baaa568..a3685e127e 100644 --- a/public/src/forum/admin/themes.js +++ b/public/src/forum/admin/themes.js @@ -11,12 +11,6 @@ define(function() { themeEvent = function(e) { if (e.target.hasAttribute('data-action')) { switch (e.target.getAttribute('data-action')) { - case 'preview': - var cssSrc = $(e.target).parents('li').attr('data-css'), - cssEl = document.getElementById('base-theme'); - - cssEl.href = cssSrc; - break; case 'use': var parentEl = $(e.target).parents('li'), themeType = parentEl.attr('data-type'), @@ -40,6 +34,7 @@ define(function() { } } }; + bootstrapThemeContainer.addEventListener('click', themeEvent); installedThemeContainer.addEventListener('click', themeEvent); @@ -81,7 +76,6 @@ define(function() { '
' + '
' + ' ' + - '' + '
' + '

' + themes[x].name + '

' + '

' + @@ -120,7 +114,6 @@ define(function() { '

' + '
' + ' ' + - '' + '
' + '

' + theme.name + '

' + '

' + theme.description + '

' +