User:Soxra/monobook.js: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
No edit summary
(Undo revision 573055 by Soxra (talk))
 
Line 1: Line 1:
$(document).ready(function () {
$(document).ready(function () {
/* Force input boxes to have input box class */
    /* Force input boxes to have input box class */
$(":text, input[type='text'], input[type='password'], input[type='search'], textarea, input#wpSummary").addClass("input-text-box");
    $(":text, input[type='text'], input[type='password'], input[type='search'], textarea, input#wpSummary").addClass("input-text-box");
 
/* Improvement Box Tabber */
    /* Improvement Box Tabber */
$(".improvementBox").find(".improveTabLinkBox a").click(function () {
    $(".improvementBox").find(".improveTabLinkBox a").click(function () {
$(".improvementBox").find("#improveTabs > div").hide();
        $(".improvementBox").find("#improveTabs > div").hide();
$(".improvementBox").find("#improveTabs > div" + $(this).attr("href")).show();
        $(".improvementBox").find("#improveTabs > div" + $(this).attr("href")).show();
return false;
        return false;
});
    });
/* Recent Changes modifications */
$(".page-Special_RecentChanges").each(function() {
$("table.mw-enhanced-rc.mw-collapsible").removeClass("mw-collapsible");
$(".mw-collapsible-toggle").live("mouseover",function() { $(this).unbind().die(); });
/* Sliding enhanced page */
$("table.mw-enhanced-rc.mw-made-collapsible .mw-rc-openarrow a, table.mw-enhanced-rc.mw-made-collapsible .mw-rc-closearrow a").live("click",function() {
var $collTable = $(this).closest("table.mw-enhanced-rc.mw-made-collapsible");
var $openarrow = $collTable.find(".mw-rc-openarrow");
var $closearrow = $collTable.find(".mw-rc-closearrow");
$openarrow.css("visibility","visible").removeClass("mw-changeslist-hidden mw-changeslist-expanded");
$closearrow.css("visibility","visible").removeClass("mw-changeslist-hidden mw-changeslist-expanded");
if ($collTable.find("tr:last").is(":hidden")) {
$openarrow.hide();
$closearrow.show();
$collTable.find("tr:not(:first)").show();
} else {
$openarrow.show();
$closearrow.hide();
$collTable.find("tr:not(:first)").hide();
}
return false;
});
});
});
});

Latest revision as of 01:23, 8 August 2012

$(document).ready(function () {
    /* Force input boxes to have input box class */
    $(":text, input[type='text'], input[type='password'], input[type='search'], textarea, input#wpSummary").addClass("input-text-box");

    /* Improvement Box Tabber */
    $(".improvementBox").find(".improveTabLinkBox a").click(function () {
        $(".improvementBox").find("#improveTabs > div").hide();
        $(".improvementBox").find("#improveTabs > div" + $(this).attr("href")).show();
        return false;
    });
});