MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 535: Line 535:
// Teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest
// Teeeeeeeeeeeeeeeeeeeeeeeeeeeeeeest
// Handle List View Button
// Handle List View Button
$(".test-list-view-button").click(function() {
$(".test-list-view-button").click(function() {
Line 575: Line 576:
// Similar event handlers can be added for block view buttons if needed
// Similar event handlers can be added for block view buttons if needed
 
// Handle Block Sorting Buttons
$(".test-chronicle-block-button").click(function() {
    // Show only the chronicle block
    $(".test-block-view > div").hide();
    $(".test-chronicle-block").show();
});
$(".test-random-block-button").click(function() {
    // Show only the random block
    $(".test-block-view > div").hide();
    $(".test-random-block").show();
});
$(".test-alphabetical-block-button").click(function() {
    // Show only the alphabetical block
    $(".test-block-view > div").hide();
    $(".test-alphabetical-block").show();
});


});
});

Navigation menu