Index: trunk/extensions/Configure/CHANGELOG |
— | — | @@ -1,6 +1,10 @@ |
2 | 2 | This file lists changes on this extension. |
3 | 3 | Localisation updates are done on betawiki and aren't listed here. |
4 | 4 | |
| 5 | +0.10.13 - 3 December 2008 |
| 6 | + * JavaScript-based setting search in Special:Configure and Special:Extensions |
| 7 | + * Hidden settings now have a summary |
| 8 | + |
5 | 9 | 0.10.12 - 2 December 2008 |
6 | 10 | * Fix a problem of duplicate files with the same timestamp if two users save |
7 | 11 | a new version at the same time |
— | — | @@ -10,8 +14,8 @@ |
11 | 15 | * New reason field in Special:Configure and Special:Extension to allow users |
12 | 16 | to put a comment for each version |
13 | 17 | * File handler now uses PHP files instead of serialized files. |
14 | | - NOTE FOR PEOPLE USING FILES HANDLER: OLD SERIALIZED WON'T WORK ANYMORE IN |
15 | | - THIS VERSION, PLEASE RUN THE migrateFiles.php SCRIPT. |
| 18 | + NOTE FOR PEOPLE USING FILES HANDLER: OLD SERIALIZED FILES WON'T WORK ANYMORE |
| 19 | + IN THIS VERSION, PLEASE RUN THE migrateFiles.php SCRIPT. |
16 | 20 | |
17 | 21 | 0.10.10 - 30 November 2008 |
18 | 22 | * Editable settings are now restricted by default to some settings, if you |
Index: trunk/extensions/Configure/Configure.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Configure', |
19 | 19 | 'description' => 'Allow authorised users to configure the wiki via a web-based interface', |
20 | 20 | 'descriptionmsg' => 'configure-desc', |
21 | | - 'version' => '0.10.12', |
| 21 | + 'version' => '0.10.13', |
22 | 22 | ); |
23 | 23 | |
24 | 24 | # Configuration part |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | /** |
149 | 149 | * Styles versions, you shouldn't change it |
150 | 150 | */ |
151 | | -$wgConfigureStyleVersion = '13'; |
| 151 | +$wgConfigureStyleVersion = '14'; |
152 | 152 | |
153 | 153 | # Adding new rights... |
154 | 154 | $wgAvailableRights[] = 'configure'; |
Index: trunk/extensions/Configure/Configure.js |
— | — | @@ -235,7 +235,7 @@ |
236 | 236 | /** Collapsible big lists */ |
237 | 237 | var biglists = getElementsByClassName( configform, '*', 'configure-biglist' ); |
238 | 238 | |
239 | | - for( var l = 0; l < biglists.length; l++ ) { |
| 239 | + for( var l = 0; l < biglists.length; l++ ) { |
240 | 240 | var list = biglists[l]; |
241 | 241 | |
242 | 242 | list.id = 'configure-biglist-content-'+l; |
— | — | @@ -279,18 +279,18 @@ |
280 | 280 | var results = document.getElementById( 'configure-search-results' ); |
281 | 281 | |
282 | 282 | // Empty the existing results |
283 | | - while(results.firstChild) { |
| 283 | + while( results.firstChild ) { |
284 | 284 | results.removeChild(results.firstChild); |
285 | 285 | } |
286 | 286 | |
287 | | - if (query == '') { |
| 287 | + if ( query == '' ) { |
288 | 288 | return; |
289 | 289 | } |
290 | 290 | |
291 | 291 | var isMatch = function(element) { return element.description.indexOf( query ) !== -1; } |
292 | | - for( var i=0;i<allSettings.length;++i ) { |
| 292 | + for( var i=0; i<allSettings.length; ++i ) { |
293 | 293 | var data = allSettings[i]; |
294 | | - if (isMatch( data )) { |
| 294 | + if ( isMatch( data ) ) { |
295 | 295 | var a = document.createElement( 'a' ); |
296 | 296 | var li = document.createElement( 'li' ); |
297 | 297 | |
— | — | @@ -312,12 +312,12 @@ |
313 | 313 | // For each section... |
314 | 314 | var rootElement = document.getElementById( 'configure' ); |
315 | 315 | var fieldsets = rootElement.getElementsByTagName( 'fieldset' ); |
316 | | - for( var fid=0;fid<fieldsets.length;++fid ) { |
| 316 | + for( var fid=0; fid<fieldsets.length; ++fid ) { |
317 | 317 | // For each subsection... |
318 | 318 | var fieldset = fieldsets[fid]; |
319 | 319 | var fieldset_title = getInnerText( fieldset.getElementsByTagName( 'legend' )[0] ); |
320 | 320 | var subsections = getElementsByClassName( fieldset, 'table', 'configure-table' ); |
321 | | - for( var sid=0;sid<subsections.length;++sid ) { |
| 321 | + for( var sid=0; sid<subsections.length; ++sid ) { |
322 | 322 | var subsection; |
323 | 323 | if (subsections[sid].getElementsByTagName( 'tbody' ).length > 0) { |
324 | 324 | subsection = subsections[sid].getElementsByTagName( 'tbody' )[0]; |
— | — | @@ -328,17 +328,20 @@ |
329 | 329 | |
330 | 330 | // For each setting... |
331 | 331 | for( var i=0; i<subsection.childNodes.length;++i ) { |
| 332 | + |
332 | 333 | var row = subsection.childNodes[i]; |
333 | | - if ( row.nodeType != row.ELEMENT_NODE || row.tagName != 'TR' ) { |
| 334 | + if ( row.nodeType != row.ELEMENT_NODE || ( row.tagName != 'tr' && row.tagName != 'TR' ) ) { |
334 | 335 | continue; |
335 | 336 | } |
336 | 337 | |
337 | 338 | var desc_cell = getElementsByClassName( row, 'td', 'configure-left-column' )[0]; |
338 | | - |
339 | | - |
| 339 | + if( typeof desc_cell == "undefined" ){ |
| 340 | + continue; |
| 341 | + } |
| 342 | + |
340 | 343 | var description; |
341 | 344 | |
342 | | - if (desc_cell.getElementsByTagName( 'p' ).length) { // Ward off comments like "This setting has been customised" |
| 345 | + if ( desc_cell.getElementsByTagName( 'p' ).length ) { // Ward off comments like "This setting has been customised" |
343 | 346 | description = getInnerText( desc_cell.getElementsByTagName( 'p' )[0] ); |
344 | 347 | } else { |
345 | 348 | description = getInnerText( desc_cell ); |