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

        Patch by fu. 

diffs (25 lines):

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) {
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to