fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-03-28 12:14 pm

[dw-free] Customize Journal Style: separate and expand presentation, colors, fonts and images

[commit: http://hg.dwscoalition.org/dw-free/rev/160d905b81fb]

http://bugs.dwscoalition.org/show_bug.cgi?id=3498

Don't collapse by default when there are many options on the page.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/LJ/Widget/S2PropGroup.pm
--------------------------------------------------------------------------------
diff -r 2d024f1c9134 -r 160d905b81fb cgi-bin/LJ/Widget/S2PropGroup.pm
--- a/cgi-bin/LJ/Widget/S2PropGroup.pm	Mon Mar 28 20:05:50 2011 +0800
+++ b/cgi-bin/LJ/Widget/S2PropGroup.pm	Mon Mar 28 20:14:32 2011 +0800
@@ -601,21 +601,6 @@ sub js {
         initWidget: function () {
             var self = this;
 
-            var maxPropsToShow = 15;
-            var numPropsOnPage = DOM.getElementsByClassName(document, "prop-row").length;
-
-            // hide all prop lists except the first one if there are too many props
-            if (numPropsOnPage > maxPropsToShow) {
-                var lists = DOM.getElementsByClassName(document, "prop-list");
-                lists.forEach(function (list) {
-                    var listid = list.id;
-                    var subheaderid = listid.replace(/proplist/, 'subheader');
-                    if (!DOM.hasClassName(list, 'first')) {
-                        self.alterSubheader(subheaderid);
-                    }
-                });
-            }
-
             // add event listeners to all of the subheaders
             var subheaders = DOM.getElementsByClassName(document, "subheader");
             subheaders.forEach(function (subheader) {
--------------------------------------------------------------------------------