MediaWiki:QuickSaveDraft.es2015.js:修订间差异
外观
创建页面,内容为“→eslint-disable no-magic-numbers: →global mw: →jshint ignore:start: // <pre> "use strict"; try { const statesMap = { 0: "尚未发出请求", 1: "已发出请求但未收到数据", 2: "已收到 header", 3: "接收数据中", 4: "数据接收完成", }; (async () => { const userId = mw.config.get("wgUserId"); if (typeof userId !== "number" || !/^\d+$/.test("" + userId) || userId <=…” |
小无编辑摘要 |
||
| (未显示同一用户的3个中间版本) | |||
| 第23行: | 第23行: | ||
try { | try { | ||
style = await $.ajax({ | style = await $.ajax({ | ||
url: `${mw.config.get("wgServer")}${mw.config.get("wgScriptPath")}/MediaWiki:Gadget-EditDraft.css?action=raw&ctype=text/css`, | url: `${mw.config.get("wgServer")}${mw.config.get("wgScriptPath")}/wiki/MediaWiki:Gadget-EditDraft.css?action=raw&ctype=text/css`, | ||
type: "GET", | type: "GET", | ||
cache: true, | cache: true, | ||