Fixed arrays for IE
authorTuomas Jormola <tj@solitudo.net>
Thu, 28 Apr 2011 11:16:51 +0000 (14:16 +0300)
committerTuomas Jormola <tj@solitudo.net>
Thu, 28 Apr 2011 11:16:51 +0000 (14:16 +0300)
underlays/feedreader/feedreader.js

index e60ebb3..aaddfca 100644 (file)
@@ -188,7 +188,7 @@ function toggleDedicatedFeedReader(isDedicated) {
        var hideElements = [
                '.pageheader',
                '.sidebar',
-               '.pagefooter',
+               '.pagefooter'
        ];
        if(isDedicated) {
                $(hideElements).each(function(i, e) {
@@ -210,7 +210,7 @@ function toggleFeedLinksDialog(dialogEnabled) {
                $('#feedreaderdialogcontainer').dialog({
                        title: 'Feeds',
                        autoOpen: false,
-                       width: $(window).width() >= 400 ? 400 : $(window).width(),
+                       width: $(window).width() >= 400 ? 400 : $(window).width()
                });
        }
        // Insert link to control the feeds dialog if needed
@@ -373,33 +373,33 @@ function preparePreferences() {
        var preferencesOptions = [
                {
                        label: 'Check signed in user',
-                       help: 'Check whether user is signed in upon loading of Feed Reader',
+                       help: 'Check whether user is signed in upon loading of Feed Reader'
                },
                {
                        label: 'Automatic signin',
                        help: 'Redirect to IkiWiki signin page if no signed in user detected upon loading of Feed Reader',
-                       depends: ['Check signed in user'],
+                       depends: ['Check signed in user']
                },
                {
                        label: 'Automatic refresh',
                        help: 'Refresh feeds upon loading of Feed Reader if signed in user detected',
-                       depends: ['Check signed in user'],
+                       depends: ['Check signed in user']
                },
                {
                        label: 'Automatic loading of first feed with unread messages',
                        help: 'Display first feed with unread messages upon loading of Feed Reader if automatic refresh above is enabled',
-                       depends: ['Automatic refresh'],
+                       depends: ['Automatic refresh']
                },
                {
                        label: 'Dedicated feed reader mode',
                        help: 'Hide/show page elements that are not needed for feed reader',
-                       onChange: function(checked) { toggleDedicatedFeedReader(checked); },
+                       onChange: function(checked) { toggleDedicatedFeedReader(checked); }
                },
                {
                        label: 'Dialog for feed links',
                        help: 'Show feed links in a separate dialog',
-                       onChange: function(checked) { toggleFeedLinksDialog(checked); },
-               },
+                       onChange: function(checked) { toggleFeedLinksDialog(checked); }
+               }
        ];
        $.each(preferencesOptions, function(i, preferencesOptionsEntry) {
                var preferenceOptionId = preferenceOptionIdFromLabel(preferencesOptionsEntry.label);
@@ -429,7 +429,7 @@ function preparePreferences() {
                title: 'Feed Reader preferences',
                autoOpen: false,
                modal: true,
-               width: $(window).width() >= 400 ? 400 : $(window).width(),
+               width: $(window).width() >= 400 ? 400 : $(window).width()
        });
 
        // Resolve dependencies
@@ -520,7 +520,7 @@ function prepareKeypress() {
                102 /* 'f' */: function() { $('#feedreaderdialoglink').click(); },
                110 /* 'n' */: function() { $('#feedreadernextbutton').click(); },
                112 /* 'p' */: function() { $('#feedreaderpreferenceslink').click(); },
-               114 /* 'r' */: function() { if($('#feedreaderactionbutton').text() == 'Refresh feeds') { $('#feedreaderactionbutton').click(); } },
+               114 /* 'r' */: function() { if($('#feedreaderactionbutton').text() == 'Refresh feeds') { $('#feedreaderactionbutton').click(); } }
        };
        $(window).keypress(function(e) {
                if(e.metaKey) {
@@ -737,7 +737,7 @@ function feedReaderJSON(params, successHandler, feedId) {
                url: url,
                success: successHandler,
                error: errorHandler,
-               dataType: 'json',
+               dataType: 'json'
        });
 }