* also put promptLeave = false if the session is already over

This commit is contained in:
Seth Call 2014-02-23 05:21:36 +00:00
parent 23af96adbe
commit 7f08e42d33
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,7 @@
// Change this to false if you want to see FTUE with fake jam client
var ftueStatus = true;
var eventCallbackName = '';
var alertCallbackName = '';
var eventCallbackRate = 1000;
var vuValue = -70;
var vuChange = 10;
@ -304,7 +305,12 @@
}
function SessionSetAlertCallback(callback) {
alertCallbackName = callback;
// simulate a backend alert
setTimeout(function() {
eval(alertCallbackName + '(27)');
}, 3000)
}
function SessionSetConnectionStatusRefreshRate(milliseconds) {
@ -357,6 +363,7 @@
vuValue += vuChange;
if (vuValue > 10 || vuValue < -70) { vuChange = vuChange * -1; }
}
function SetVURefreshRate(rateMS) {
eventCallbackRate = rateMS;

View File

@ -418,6 +418,7 @@
.fail(function(xhr, textStatus, errorMessage) {
if(xhr.status == 404) {
// we tried to join the session, but it's already gone. kick user back to join session screen
promptLeave = false;
context.window.location = "/client#/findSession";
app.notify(
{ title: "Unable to Join Session",