Valerii Vasin (valerii) wrote in changelog,
Valerii Vasin
valerii
changelog

[livejournal] r23404: LJSUP-13980: [Friends Feed] Remove setti...

Committer: vvasin
LJSUP-13980: [Friends Feed] Remove settings for friends page. Fix theme chooser.
U   trunk/cgi-bin/LJ/Widget/MoodThemeChooser.pm
Modified: trunk/cgi-bin/LJ/Widget/MoodThemeChooser.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/MoodThemeChooser.pm	2012-12-03 13:04:25 UTC (rev 23403)
+++ trunk/cgi-bin/LJ/Widget/MoodThemeChooser.pm	2012-12-03 13:19:04 UTC (rev 23404)
@@ -137,9 +137,11 @@
             DOM.addEventListener($('moodtheme_dropdown'), "change", function (evt) { self.previewMoodTheme(evt) });
         },
         previewMoodTheme: function (evt) {
-            var opt_forcemoodtheme = 0;
-            if ($('opt_forcemoodtheme').checked) opt_forcemoodtheme = 1;
+            var opt_forcemoodtheme = 0,
+                checkbox = $('opt_forcemoodtheme');
 
+            if (checkbox && checkbox.checked) opt_forcemoodtheme = 1;
+
             this.updateContent({
                 preview_moodthemeid: $('moodtheme_dropdown').value,
                 forcemoodtheme: opt_forcemoodtheme

Tags: invis89, livejournal, pm, vvasin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments