Skip to content

Commit ae072b3

Browse files
committed
getting rid of the set interval, working on issue #1
We technically don't need a set-interval to refresh the page Screenly should handle refreshing the page for us.
1 parent 21a8d8d commit ae072b3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

display.php

+1-3
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function createEventObjects(dataObj){
162162
var request = requestJSON(currentRoomNumber, todayDate);
163163

164164
request.onload = function() {
165-
165+
166166
//arrays for the data
167167
var arrRoomNumbers = [];
168168
var arrRoomNames = [];
@@ -241,7 +241,6 @@ function roomNameAndStatus(arrRoomNumbers, arrRoomNames, arrLabDefault, arrOpenT
241241
*/
242242
function createMiniSchedule(roomName, roomNumber, closeTime, openTime, todayDate){
243243
//set an interval so this part of the page is updated and always accurate
244-
setInterval(function(){
245244
//get all of the events that are happening in this room today
246245
$.getJSON('http://api.rit.edu/v1/rooms/'+roomNumber+'/meetings?date='+todayDate+'&RITAuthorization=95da72f6e649aff4f45405cded98a109cb1514da',
247246
function (json){
@@ -360,7 +359,6 @@ function (json){
360359
}//end of else
361360
}//end of success
362361
);//end of getJSON
363-
},1000 * 60 * 30);//end of setInterval, refresh every 30 minutes
364362
}//end of function createMiniSchedule
365363

366364
/*

0 commit comments

Comments
 (0)