* oopms. fixing something I just broke; you couldn't start a session that you were only scheduling
This commit is contained in:
parent
4a072e5cd2
commit
20e4a39a61
|
|
@ -505,6 +505,9 @@
|
|||
startSession();
|
||||
});
|
||||
}
|
||||
else {
|
||||
startSession();
|
||||
}
|
||||
}
|
||||
|
||||
function startSession() {
|
||||
|
|
@ -623,6 +626,7 @@
|
|||
else {
|
||||
rest.createScheduledSession(data)
|
||||
.done(function(response) {
|
||||
logger.debug("created session on server");
|
||||
$('#create-session-buttons .btn-next').off('click');
|
||||
var newSessionId = response.id;
|
||||
|
||||
|
|
@ -635,6 +639,7 @@
|
|||
}
|
||||
})
|
||||
.fail(function(jqXHR){
|
||||
logger.debug("unable to schedule a session")
|
||||
app.notifyServerError(jqXHR, "Unable to schedule a session");
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -936,6 +936,7 @@
|
|||
|
||||
context.JK.guardAgainstBrowser = function(app, args) {
|
||||
if(!gon.isNativeClient) {
|
||||
logger.debug("guarding against normal browser on screen thaht requires native client")
|
||||
app.layout.showDialog('launch-app-dialog', args)
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@ def schedule_session(options = {})
|
|||
find('.btn-next', text: 'PUBLISH SESSION').trigger(:click)
|
||||
|
||||
find('h2', text: 'create session')
|
||||
|
||||
|
||||
sleep 1 # to get rid of this, we need to verify that the URL is /client#/home.. otherwise intermittent fails
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue