MediaWiki:Common.js:修订间差异
来自Limbo Wiki
小无编辑摘要 |
小无编辑摘要 |
||
第7行: | 第7行: | ||
$("div." + attr).css("display","block"); | $("div." + attr).css("display","block"); | ||
$("span." + attr).css("display","inline"); | $("span." + attr).css("display","inline"); | ||
}); | |||
$("label.oo-ui-labelElement-label * span.mw-summary-preset span.mw-summary-preset-item").click(function(){ | |||
$(this).parents("div.oo-ui-fieldLayout-body").first().find("input#wpSummary").val($(this).children().text()); | |||
}); | }); | ||
}); | }); |
2022年3月27日 (日) 14:48的版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */ $(document).ready(function(){ $("span.lw-treebut").click(function(){ $("div.lw-treediv").css("display","none"); $("span.lw-treediv").css("display","none"); attr = $(this).attr("id"); $("div." + attr).css("display","block"); $("span." + attr).css("display","inline"); }); $("label.oo-ui-labelElement-label * span.mw-summary-preset span.mw-summary-preset-item").click(function(){ $(this).parents("div.oo-ui-fieldLayout-body").first().find("input#wpSummary").val($(this).children().text()); }); });