MediaWiki:Gadget-wikibugs.js/Core.js: diferenças entre revisões

Conteúdo apagado Conteúdo adicionado
Manutenção: Uso de String.prototype.trim em vez de jQuery.trim, que tornou-se obsoleta
 
Linha 439:
$loadingIcon.show();
 
toInsert = '=== [[:' + that.reportedPage + ']] ===\n' + content;
 
function processContentOfPage( text ){
Linha 445:
 
// Process the wikitext of the page
sectionLine = mw.msg( 'wikibugs-page-section-line' );
if(isFile) {
sectionLine = mw.msg( 'wikibugs-file-section-line' );
} else {
sectionLine = mw.msg( 'wikibugs-page-section-line' );
}
that.newText = text.replace(sectionLine, sectionLine + '\n\n' + toInsert);
if (text === that.newText) {