2009-01-23 22:50:33 +00:00
|
|
|
function doExprSubmit()
|
|
|
|
{
|
|
|
|
var expr = document.getElementById('wpTestExpr').value;
|
|
|
|
injectSpinner( document.getElementById( 'mw-abusefilter-submitexpr' ), 'abusefilter-expr' );
|
|
|
|
sajax_do_call( 'AbuseFilter::ajaxEvaluateExpression', [expr], processExprResult );
|
|
|
|
}
|
|
|
|
function processExprResult( request ) {
|
|
|
|
var response = request.responseText;
|
|
|
|
|
|
|
|
removeSpinner( 'abusefilter-expr' );
|
|
|
|
|
|
|
|
var el = document.getElementById( 'mw-abusefilter-expr-result' );
|
|
|
|
changeText( el, response );
|
|
|
|
}
|
|
|
|
function doReautoSubmit()
|
|
|
|
{
|
|
|
|
var name = document.getElementById('reautoconfirm-user').value;
|
|
|
|
injectSpinner( document.getElementById( 'mw-abusefilter-reautoconfirmsubmit' ), 'abusefilter-reautoconfirm' );
|
|
|
|
sajax_do_call( 'AbuseFilter::ajaxReAutoconfirm', [name], processReautoconfirm );
|
|
|
|
}
|
|
|
|
function processReautoconfirm( request ) {
|
|
|
|
var response = request.responseText;
|
|
|
|
|
2009-02-18 19:34:36 +00:00
|
|
|
if (response && response.length) {
|
2009-01-23 22:50:33 +00:00
|
|
|
jsMsg( response );
|
|
|
|
}
|
|
|
|
|
|
|
|
removeSpinner( 'abusefilter-reautoconfirm' );
|
|
|
|
}
|