Content deleted Content added
-1.2 |
-1.3 |
||
Line 1:
/// Gadget/logidTooltip/d.js
// Pop up logid link on certain special pages
///
// ResourceLoader: compatible;
// dependencies: oojs, oojs-ui-core, oojs-ui-widgets
Line 15:
( function ( mw, $ ) {
"use strict";
var Version = -1.
LIT = { signature: "logidTooltip",
source: "0f/Arrow Blue UpperRight 001.svg",
search: "&action=edit&redlink=1",
selector: "data-mw-logid",
npx: 16,
Line 58 ⟶ 59:
// > LIT.signature
// > Version
// > LIT.search
// < LIT.vsn
// < LIT.doc
Line 67 ⟶ 69:
// (filepath)
// (LIT.furnish)
//
var signature = "ext.gadget." + LIT.signature,
env, launch, rls;
if ( mw.loader.getState( signature ) !== "ready" ) {
rls = { };
Line 83 ⟶ 85:
case "Recentchanges":
case "Watchlist":
LIT.special = env.wgFormattedNamespaces[ "-1" ];▼
mw.hook( LIT.signature + "-icon" ).add( filepath );▼
mw.hook( "wikipage.content" ).add( LIT.furnish );▼
break;
default:
launch = ( window.___location.search.indexOf( LIT.search )
>= 0 );
} // switch wgCanonicalSpecialPageName
if ( launch ) {
LIT.signed = LIT.signature + "-handle";
}
}
} // fire()
Line 101 ⟶ 109:
// OOjs-ui ready
// Postcondition:
// Return popup
// Uses:
// > LIT.special
Line 264 ⟶ 273:
// mw.hook()
// (LIT.fiat)
// 2020-01-01
var $entries = $area.find( "li[" + LIT.selector + "]" );
if ( $entries.length ) {
|