Index: trunk/extensions/Configure/Configure.page.php |
— | — | @@ -561,12 +561,14 @@ |
562 | 562 | } else { |
563 | 563 | $val = $wgRequest->getCheck( $id ); |
564 | 564 | } |
565 | | - $settings[$name][$group][$right] = $val; |
| 565 | + if ($val) |
| 566 | + $settings[$name][$group][$right] = true; |
566 | 567 | } else if ( $wgRequest->getCheck( $id ) ) { |
567 | 568 | $settings[$name][$group][] = $right; |
568 | 569 | } |
569 | 570 | } |
570 | 571 | } |
| 572 | + |
571 | 573 | break; |
572 | 574 | case 'rate-limits': |
573 | 575 | $all = array(); |
— | — | @@ -1190,7 +1192,7 @@ |
1191 | 1193 | $checked = in_array( $right, $levs ); |
1192 | 1194 | $id = Sanitizer::escapeId( 'wp' . $conf . '-' . $group . '-' . $right ); |
1193 | 1195 | if( $type == 'group-bool' ) |
1194 | | - $desc = User::getRightDescription( $right ) . " (" .Xml::element( 'tt', null, $right ) . ")"; |
| 1196 | + $desc = User::getRightDescription( $right ) . " (" .Xml::element( 'tt', array( 'class' => 'configure-right-id' ), $right ) . ")"; |
1195 | 1197 | else |
1196 | 1198 | $desc = User::getGroupName( $right ); |
1197 | 1199 | $row .= '<li>' . Xml::check( $id, $checked, $attr + array( 'id' => $id ) ) . ' ' . Xml::tags( 'label', array( 'for' => $id ), $desc ) . "</li>\n"; |
Index: trunk/extensions/Configure/Configure.php |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | /** |
150 | 150 | * Styles versions, you shouldn't change it |
151 | 151 | */ |
152 | | -$wgConfigureStyleVersion = '17'; |
| 152 | +$wgConfigureStyleVersion = '18'; |
153 | 153 | |
154 | 154 | # Adding new rights... |
155 | 155 | $wgAvailableRights[] = 'configure'; |
Index: trunk/extensions/Configure/Configure.js |
— | — | @@ -373,9 +373,14 @@ |
374 | 374 | for( var i=0; i<labels.length; ++i ) { |
375 | 375 | var label = labels[i]; |
376 | 376 | var checkbox = document.getElementById( label.htmlFor ); |
| 377 | + var idcandidates = label.getElementsByTagName( 'tt' ); |
| 378 | + var displayid = label.innerHTML; |
| 379 | + if (idcandidates.length) { |
| 380 | + displayid = '<tt>'+idcandidates[0].innerHTML+'</tt>'; // Ew ew ew ew ew ew |
| 381 | + } |
377 | 382 | |
378 | 383 | if (checkbox.checked) { |
379 | | - matches.push( label.innerHTML ); // Yuck |
| 384 | + matches.push( displayid ); // Yuck |
380 | 385 | } |
381 | 386 | } |
382 | 387 | |