MediaWiki:Common.js/edit.js:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
// | /* Any JavaScript here will be loaded for all users on edit page load. */ | ||
$(function() { | |||
$(".mw-summary-preset-item a").closest('.oo-ui-fieldLayout-header').width($('#wpSummary').width()); | |||
$(".mw-summary-preset-item a").on("click", function() { | |||
$('[name="wpSummary"]').val($('[name="wpSummary"]').val() + " " + $(this).html()); | |||
}); | |||
$( | |||
}); | }); | ||
/ | 阅读更多:https://zh.moegirl.org/MediaWiki:Common.js/edit.js | ||
本文引自萌娘百科(https://zh.moegirl.org/),文字内容遵守【知识共享 署名-非商业性使用-相同方式共享 3.0】协议。 | |||
2018年5月26日 (六) 13:38的版本
/* Any JavaScript here will be loaded for all users on edit page load. */
$(function() {
$(".mw-summary-preset-item a").closest('.oo-ui-fieldLayout-header').width($('#wpSummary').width());
$(".mw-summary-preset-item a").on("click", function() {
$('[name="wpSummary"]').val($('[name="wpSummary"]').val() + " " + $(this).html());
});
});
阅读更多:https://zh.moegirl.org/MediaWiki:Common.js/edit.js
本文引自萌娘百科(https://zh.moegirl.org/),文字内容遵守【知识共享 署名-非商业性使用-相同方式共享 3.0】协议。