这是林泊百科的迁移技术测试站点,所有改动不会同步到林泊百科上,此站点将会在正式迁移后关闭,请勿存放重要数据
MediaWiki:Common.js:修订间差异
跳转到导航
跳转到搜索
小无编辑摘要 标签:手工回退 |
无编辑摘要 |
||
| (未显示另一用户的1个中间版本) | |||
| 第2行: | 第2行: | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
$("span.mw-summary-preset span.mw-summary-preset-item").click(function(){ | $("span.mw-summary-preset span.mw-summary-preset-item").click(function(){ | ||
$(this).parents("div.oo-ui-fieldLayout-body").first().find("input#wpSummary"). | a = $(this).parents("div.oo-ui-fieldLayout-body").first().find("input#wpSummary").get(0); | ||
a.value += $(this).children().text(); | |||
}); | }); | ||
$(".lw-treebut").click(function(){ | $(".lw-treebut").click(function(){ | ||
$(" | p = $(this).parents(".mw-parser-output").first(); | ||
p.find(".lw-treediv").css("display","none"); | |||
p.find(".lw-treediv." + $(this).attr("id")).css("display","block"); | |||
}); | }); | ||
}); | }); | ||
2022年9月24日 (六) 21:20的最新版本
/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
$(document).ready(function(){
$("span.mw-summary-preset span.mw-summary-preset-item").click(function(){
a = $(this).parents("div.oo-ui-fieldLayout-body").first().find("input#wpSummary").get(0);
a.value += $(this).children().text();
});
$(".lw-treebut").click(function(){
p = $(this).parents(".mw-parser-output").first();
p.find(".lw-treediv").css("display","none");
p.find(".lw-treediv." + $(this).attr("id")).css("display","block");
});
});