Content deleted Content added
m Remove outdated comment about deprecated global wgNamespaceIds, available since MW 1.16 (which is now unsupported) |
Maintenance: mw:RL/MGU - Updated deprecated module name |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 12:
}
mw.loader.using( [ 'user.options', 'jquery.textSelection', 'mediawiki.util' ], function () {
/* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar . . . */
if ( $.inArray( mw.config.get( 'wgAction' ), [ 'edit', 'submit' ] ) !== -1 ) {
$
if ( mw.user.options.get('usebetatoolbar') ) {
mw.loader.using( 'ext.wikiEditor
} else {
btn = oldToolbarBtn;
Line 45:
var btn = $('<img class=mw-toolbar-custombutton id="' + bId + '">')
.attr({ src: bIcon, title: bTitle, alt: bTitle.substr(0,3) })
.css({ height:'20px', 'background-color':'#bce', border:'1px outset #bce', margin:'0 1px', cursor:'pointer'})
.click(bFunc)
.appendTo('#toolbar')
if( bKey ){
mw.util.updateTooltipAccessKeys( btn[0] )▼
btn.attr({ accesskey: bKey, title: bTitle + ' ['+bKey+']' })
}
Line 82:
var httpRegExp = '((?:https?:)?\\/\\/[^\\]\\[\\n\\r<>" ]+)' // any chars except []<>" and \n and spaces
var localPrefix = WMPrefixes
var oldText, newText, isBeforeCursor, colonNS
Line 175:
var decodingFailed //need to skip some strange percent-encoded URIs
//percent-decoding
Line 320 ⟶ 319:
return [proj, lang]
}
|