File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,6 +235,17 @@ div.about_content { text-align: left; }
235235# options li { margin-bottom : 0.8em ; }
236236.seriescolor { float : right; margin-top : 2px ; height : 13px ; width : 14px ; }
237237a .togglefold { font-size : normal; color : # 000000 ; }
238+ a .togglefold ::before {
239+ content : '▶' ;
240+ display : inline-block;
241+ margin-right : 0.3em ;
242+ font-size : 0.7em ;
243+ transition : transform 0.2s ease;
244+ transform : rotate (90deg );
245+ }
246+ a .togglefold .folded ::before {
247+ transform : rotate (0deg );
248+ }
238249a .checkall , a .uncheckall { font-size : small; color : # AAAAAA ; }
239250
240251p .errormessage { line-height : 10em ; margin-bottom : 10em ; }
Original file line number Diff line number Diff line change @@ -43,8 +43,14 @@ $(function() {
4343
4444 $ ( '.togglefold' ) . each ( function ( ) {
4545 var lis = $ ( this ) . parent ( ) . children ( "li" ) ;
46+ var allUnchecked = lis . find ( "input[type='checkbox']" ) . filter ( ':checked' ) . length === 0 ;
47+ if ( allUnchecked ) {
48+ lis . hide ( ) ;
49+ $ ( this ) . addClass ( 'folded' ) ;
50+ }
4651 $ ( this ) . click ( function ( ) {
4752 lis . slideToggle ( ) ;
53+ $ ( this ) . toggleClass ( 'folded' ) ;
4854 return false ;
4955 } ) ;
5056 } ) ;
Original file line number Diff line number Diff line change @@ -409,11 +409,6 @@ function init(defaults) {
409409 });
410410 */
411411
412- sel = $ ( "input[name='benchmarks']" ) ;
413- $ . each ( defaults . benchmarks , function ( i , bench ) {
414- sel . filter ( "[value='" + bench + "']" ) . prop ( 'checked' , true ) ;
415- } ) ;
416-
417412 sel = $ ( "input[name='environments']" ) ;
418413 $ . each ( defaults . environments , function ( i , env ) {
419414 sel . filter ( "[value='" + env + "']" ) . prop ( 'checked' , true ) ;
Original file line number Diff line number Diff line change 5151 < ul > < a href ="# " class ="togglefold "> {{ key }}</ a > < a href ="# " class ="checkall "> (All</ a > , < a href ="# " class ="uncheckall "> None)</ a >
5252 {% for bench in benchlist|dictsort:"name" %}
5353 < li title ="{{ bench.description }} ">
54- < input id ="benchmark_{{ bench.id }} " type ="checkbox " name ="benchmarks " value ="{{ bench.id }} " />
54+ {% if bench in checkedbenchmarks %}
55+ < input id ="benchmark_{{ bench.id }} " type ="checkbox " name ="benchmarks " value ="{{ bench.id }} " checked />
56+ {% else %}
57+ < input id ="benchmark_{{ bench.id }} " type ="checkbox " name ="benchmarks " value ="{{ bench.id }} " />
58+ {% endif %}
5559 < label for ="benchmark_{{ bench.id }} "> {{ bench }}</ label >
5660 </ li > {% endfor %}
5761 </ ul > {% endfor %}
You can’t perform that action at this time.
0 commit comments