From beb74cb54aa8614d84d6a602e3d29ecd73638f9c Mon Sep 17 00:00:00 2001 From: Andrew Bauer Date: Fri, 8 Jan 2021 14:34:10 -0600 Subject: [PATCH] replace mootools Request.JSON --- web/skins/classic/views/js/event.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/skins/classic/views/js/event.js b/web/skins/classic/views/js/event.js index 3ff5aed32..ecdcbbd38 100644 --- a/web/skins/classic/views/js/event.js +++ b/web/skins/classic/views/js/event.js @@ -653,11 +653,10 @@ function getNearEventsResponse( respObj, respText ) { $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 ) { - var parms = "view=request&request=status&entity=nearevents&id="+eventId+filterQuery+sortQuery; - nearEventsReq.send( parms ); + $j.getJSON(thisUrl + '?view=request&request=status&entity=nearevents&id='+eventId+filterQuery+sortQuery) + .done(getNearEventsResponse) + .fail(logAjaxFail); } function loadEventThumb( event, frame, loadImage ) {