MediaWiki:Gadget-oldeditor.js: Difference between revisions

Content deleted Content added
update
m Clean up
Line 9:
 
/*global $, mw */
$(document).ready(function (){
var state = mw.loader.getState('ext.visualEditor.viewPageTarget.init');
if (state && state != 'registered') { // 'registered' actually means 'not loading'
mw.loader.using('ext.visualEditor.viewPageTarget.init', function () {
// killKill the tab
var caEdit = $('#ca-edit a');
$('#ca-editsource a')
Line 21:
$('#ca-editsource').attr('id', 'ca-edit');
 
// killKill the section edit links
$('.mw-editsection-link-secondary')
.text( $('.mw-editsection-link-primary').eq(0).text() )