Permalink
Browse files

Tweaked theme switcher (Thanks to @vi on Forrst)

  • Loading branch information...
1 parent 89c5584 commit 67af1cc8d584bd2fcfbe109aad6d8e1acd96513c Jordan Adams committed Dec 21, 2011
Showing with 6 additions and 16 deletions.
  1. +6 −16 modalite.js
View
@@ -41,28 +41,18 @@
// Add Theme
+ $('.modalite_modal').addClass('theme_' + settings.theme);
+ $('.modalite_modal_close').addClass('theme_' + settings.theme);
+ $('.modalite_overlay').addClass('theme_' + settings.theme);
+
+ // Extra Theme Stuff
switch (settings.theme) {
- case 'light':
- $('.modalite_modal').addClass('theme_light');
- $('.modalite_modal_close').addClass('theme_light');
- $('.modalite_overlay').addClass('theme_light');
- break;
-
- case 'dark':
- $('.modalite_modal').addClass('theme_dark');
- $('.modalite_modal_close').addClass('theme_dark');
- $('.modalite_overlay').addClass('theme_dark');
- break;
case 'facebook':
- $('.modalite_modal').addClass('theme_facebook');
- $('.modalite_modal_close').addClass('theme_facebook');
- $('.modalite_overlay').addClass('theme_facebook');
-
$('.modalite_modal_close a').text('Close');
$('.modalite_modal').children().wrapAll('<div class="modalite_modal_facebook" />');
-
break;
+
}

0 comments on commit 67af1cc

Please sign in to comment.