User:This, that and the other/ratemath.js: Difference between revisions

Content deleted Content added
 
update to new morebits
 
Line 23:
ratemath.callback = function ratemathCallback() {
var Window = new SimpleWindowMorebits.simpleWindow( 600, 250 );
Window.setTitle( "Rate mathematics article" );
var form = new QuickFormMorebits.quickForm( ratemath.callback.evaluate );
form.append( {
type: 'select',
Line 89:
 
if( text.search(/\{\{\s*[mM]ath(s)?[ _]?rating/) != -1 ) {
StatusMorebits.status.info('Info', 'Removing previous rating templates');
text = text.replace(/\{\{\s*[mM]aths?[ _]?rating([a-zA-Z |= \n])*\}\}/g, '');
if( text.search(/\{\{\s*[mM]ath(s)?[ _]?rating/) != -1 ) {
Line 119:
}
 
StatusMorebits.status.init( form );
SimpleWindowMorebits.simpleWindow.setButtonsEnabled(false);
 
WikipediaMorebits.wiki.actionCompleted.redirect = wgPageNamepagename;
WikipediaMorebits.wiki.actionCompleted.notice = "Tagging complete, reloading talk page in some seconds";
 
var wikipedia_page = new WikipediaMorebits.wiki.page(pagename, 'Tagging talk page');
wikipedia_page.setCallbackParameters({ quality: quality, priority: priority, field: field });
wikipedia_page.setFollowRedirect(false);