mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-15 03:43:55 +00:00
fixed: 18203 CategoryTree js-generated expand links always hidden; patch by RockMFR; sorry it took so long
This commit is contained in:
parent
73dfcc1c8c
commit
9dc6adfdcc
|
@ -142,17 +142,21 @@ var categoryTreeRetryMsg = "Please wait a moment and try again.";
|
|||
|
||||
result = result.replace(/##LOAD##/g, categoryTreeExpandMsg);
|
||||
div.innerHTML= result;
|
||||
|
||||
categoryTreeShowToggles();
|
||||
}
|
||||
|
||||
var opt = categoryTreeEncodeValue(options);
|
||||
sajax_do_call( "efCategoryTreeAjaxWrapper", [cat, opt, 'json'] , f );
|
||||
}
|
||||
|
||||
// Re-show the CategoryTreeToggles.
|
||||
addOnloadHook( function() {
|
||||
var toggles = getElementsByClassName( document, 'span', 'CategoryTreeToggle' );
|
||||
|
||||
for( var i = 0; i<toggles.length; ++i ) {
|
||||
toggles[i].style.display = 'inline';
|
||||
}
|
||||
} );
|
||||
|
||||
function categoryTreeShowToggles() {
|
||||
var toggles = getElementsByClassName( document, 'span', 'CategoryTreeToggle' );
|
||||
|
||||
for( var i = 0; i<toggles.length; ++i ) {
|
||||
toggles[i].style.display = 'inline';
|
||||
}
|
||||
}
|
||||
|
||||
// Re-show the CategoryTreeToggles
|
||||
addOnloadHook(categoryTreeShowToggles);
|
||||
|
|
Loading…
Reference in a new issue