replace mootools Request.JSON

This commit is contained in:
Andrew Bauer 2021-01-08 14:34:10 -06:00 committed by Isaac Connor
parent 381bf0c219
commit beb74cb54a
1 changed files with 3 additions and 4 deletions

View File

@ -653,11 +653,10 @@ function getNearEventsResponse( respObj, respText ) {
$j('#nextBtn').prop('disabled', nextEventId == 0 ? true : false).attr('class', nextEventId == 0 ? 'unavail' : 'inactive'); $j('#nextBtn').prop('disabled', nextEventId == 0 ? true : false).attr('class', nextEventId == 0 ? 'unavail' : 'inactive');
} }
var nearEventsReq = new Request.JSON( {url: thisUrl, method: 'get', timeout: AJAX_TIMEOUT, link: 'cancel', onSuccess: getNearEventsResponse} );
function nearEventsQuery( eventId ) { function nearEventsQuery( eventId ) {
var parms = "view=request&request=status&entity=nearevents&id="+eventId+filterQuery+sortQuery; $j.getJSON(thisUrl + '?view=request&request=status&entity=nearevents&id='+eventId+filterQuery+sortQuery)
nearEventsReq.send( parms ); .done(getNearEventsResponse)
.fail(logAjaxFail);
} }
function loadEventThumb( event, frame, loadImage ) { function loadEventThumb( event, frame, loadImage ) {