fix for VFRS 582

This commit is contained in:
Ubuntu 2013-09-10 06:14:23 +00:00
parent 7e06c9c83d
commit 0140ba67cb
2 changed files with 24 additions and 1 deletions

View File

@ -216,6 +216,9 @@
console.log("session data=" + jsonData);
$('#btn-create-session').addClass('button-disabled');
$('#btn-create-session').bind('click', false);
var url = "/api/sessions";
$.ajax({
type: "POST",
@ -232,8 +235,14 @@
// Re-loading the session settings will cause the form to reset with the right stuff in it.
// This is an extra xhr call, but it keeps things to a single codepath
loadSessionSettings();
$('#btn-create-session').removeClass('button-disabled');
$('#btn-create-session').unbind('click', false);
},
error: app.ajaxError
error: function() {
app.ajaxError(arguments);
$('#btn-create-session').removeClass('button-disabled');
$('#btn-create-session').unbind('click', false);
}
});
return false;
}

View File

@ -212,6 +212,20 @@ small {
text-decoration:none;
}
.button-disabled {
border: none;
outline: none;
color:#EEE;
background-color:#666;
cursor:default;
content: "Hang on..."
}
.button-disabled:hover{
color:#EEE;
background-color:#666;
}
a img {
border:none;
}