2009-10-07 13:57:06 +00:00
|
|
|
function doExprSubmit() {
|
2009-01-23 22:50:33 +00:00
|
|
|
var expr = document.getElementById('wpTestExpr').value;
|
|
|
|
injectSpinner( document.getElementById( 'mw-abusefilter-submitexpr' ), 'abusefilter-expr' );
|
|
|
|
sajax_do_call( 'AbuseFilter::ajaxEvaluateExpression', [expr], processExprResult );
|
|
|
|
}
|
2009-07-17 13:52:40 +00:00
|
|
|
|
2009-01-23 22:50:33 +00:00
|
|
|
function processExprResult( request ) {
|
|
|
|
var response = request.responseText;
|
|
|
|
|
|
|
|
removeSpinner( 'abusefilter-expr' );
|
|
|
|
|
|
|
|
var el = document.getElementById( 'mw-abusefilter-expr-result' );
|
2009-03-18 19:57:25 +00:00
|
|
|
el.innerHTML = response;
|
2009-01-23 22:50:33 +00:00
|
|
|
}
|
2009-07-17 13:52:40 +00:00
|
|
|
|
2009-10-07 13:57:06 +00:00
|
|
|
function doReautoSubmit() {
|
2009-01-23 22:50:33 +00:00
|
|
|
var name = document.getElementById('reautoconfirm-user').value;
|
|
|
|
injectSpinner( document.getElementById( 'mw-abusefilter-reautoconfirmsubmit' ), 'abusefilter-reautoconfirm' );
|
|
|
|
sajax_do_call( 'AbuseFilter::ajaxReAutoconfirm', [name], processReautoconfirm );
|
|
|
|
}
|
2009-07-17 13:52:40 +00:00
|
|
|
|
2009-01-23 22:50:33 +00:00
|
|
|
function processReautoconfirm( request ) {
|
|
|
|
var response = request.responseText;
|
|
|
|
|
2009-10-07 13:57:06 +00:00
|
|
|
if ( response && response.length ) {
|
2009-01-23 22:50:33 +00:00
|
|
|
jsMsg( response );
|
|
|
|
}
|
|
|
|
|
|
|
|
removeSpinner( 'abusefilter-reautoconfirm' );
|
|
|
|
}
|