“MediaWiki:Common.js/edit.js”的版本间的差异
跳到导航
跳到搜索
(未显示同一用户的5个中间版本) | |||
第2行: | 第2行: | ||
$(function() { | $(function() { | ||
− | + | $(".mw-summary-preset-item a").closest('.oo-ui-fieldLayout-header').width($('#wpSummary').width()); | |
− | |||
$(".mw-summary-preset-item a").on("click", function() { | $(".mw-summary-preset-item a").on("click", function() { | ||
− | |||
$('[name="wpSummary"]').val($('[name="wpSummary"]').val() + " " + $(this).html()); | $('[name="wpSummary"]').val($('[name="wpSummary"]').val() + " " + $(this).html()); | ||
}); | }); | ||
}); | }); | ||
− | 阅读更多:https://zh.moegirl.org/MediaWiki:Common.js/edit.js | + | //阅读更多:https://zh.moegirl.org/MediaWiki:Common.js/edit.js |
− | 本文引自萌娘百科(https://zh.moegirl.org/),文字内容遵守【知识共享 署名-非商业性使用-相同方式共享 3.0】协议。 | + | //本文引自萌娘百科(https://zh.moegirl.org/),文字内容遵守【知识共享 署名-非商业性使用-相同方式共享 3.0】协议。 |
2018年5月26日 (六) 14:50的最新版本
/* 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】协议。