MediaWiki:Group-user.js: Difference between revisions
From Destinypedia, the Destiny wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for registered users only */ | /* Any JavaScript here will be loaded for registered users only */ | ||
/* | /* Fix mobile and new upload cleanup */ | ||
$(function() { | $(function() { | ||
if (mw.config.get('wgCanonicalSpecialPageName') === 'Upload' && !$('#wpForReUpload').length && !$('.warning').length) { | if (mw.config.get('wgCanonicalSpecialPageName') === 'Upload' && !$('#wpForReUpload').length && !$('.warning').length) { | ||
Line 25: | Line 25: | ||
$('#wpDestFile').val(fileName + '.' + fileExt); | $('#wpDestFile').val(fileName + '.' + fileExt); | ||
} | } | ||
$('#wpUploadDescription').val($('#wpUploadDescription').val().replace(/[‘’]/g, "'").replace(/[“”]/g, '"')); | |||
}); | }); | ||
} | } |