From f80d5a6bbcae4e5273b69b6e7b573eda344786ca Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Fri, 17 Jan 2014 15:25:08 +0000 Subject: [PATCH] Fix theme switching bug --- client/src/views/application.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/views/application.js b/client/src/views/application.js index fce16cf..1825af7 100644 --- a/client/src/views/application.js +++ b/client/src/views/application.js @@ -70,13 +70,13 @@ _kiwi.view.Application = Backbone.View.extend({ theme_name = theme_name.toLowerCase(); // Clear any current theme - $('link [data-theme]:not([disabled])').each(function (idx, link) { + $('[data-theme]:not([disabled])').each(function (idx, link) { var $link = $(link); $link.attr('rel', 'alternate ' + $link.attr('rel')).attr('disabled', true)[0].disabled = true; }); // Apply the new theme - var link = $('link [data-theme][title=' + theme_name + ']'); + var link = $('[data-theme][title=' + theme_name + ']'); if (link.length > 0) { link.attr('rel', 'stylesheet').attr('disabled', false)[0].disabled = false; } -- 2.25.1