MediaWiki:Gadget-fastbuttons.js e Ajuda:Página de testes/1: diferenças entre as páginas
(Diferenças entre páginas)
Conteúdo apagado Conteúdo adicionado
repondo a versão de http://pt.wikipedia.org/w/index.php?diff=26542340&oldid=26491496, com correções tb. do Helder: http://pt.wikipedia.org/w/index.php?diff=26543744&oldid=26543456 |
m Ajuste para (tentar) evitar o problema descrito no Bug 30441 e no café dos programadores |
||
Linha 350: | Linha 350: | ||
'action': 'edit', |
'action': 'edit', |
||
'fastb': code |
'fastb': code |
||
} |
}, |
||
param = []; |
|||
if( extraText ){ |
if( extraText ){ |
||
data.fbtxt = extraText; |
data.fbtxt = extraText; |
||
} |
} |
||
$.each( data, function( key, value){ |
|||
param.push( key + '=' + encodeURIComponent( value ) ); |
|||
}) |
|||
$patrol = mw.util.$content.find('span.patrollink a').first(); |
$patrol = mw.util.$content.find('span.patrollink a').first(); |
||
rcid = mw.util.getParamValue( 'rcid', $patrol.attr('href') || '' ); |
rcid = mw.util.getParamValue( 'rcid', $patrol.attr('href') || '' ); |
||
if ( rcid ) { |
if ( rcid ) { |
||
fb.patrolRevision( rcid, function(){ |
fb.patrolRevision( rcid, function(){ |
||
location.href = url + |
location.href = url + param.join( '&' ); |
||
} ); |
} ); |
||
} else{ |
} else{ |
||
location.href = url + |
location.href = url + param.join( '&' ); |
||
} |
} |
||
break; |
break; |