* VRFS-1937 - centered text now left aligned on cerate session screen for scheduled sessions

This commit is contained in:
Seth Call 2014-07-23 16:30:42 -05:00
parent 3894b2cbd3
commit b590548af5
3 changed files with 34 additions and 16 deletions

View File

@ -49,10 +49,9 @@
createInvitations(updateSessionID);
});
}
$.ajax({
url: "/api/invitations",
data: { session_id: sessionId, sender: context.JK.currentUserId }
}).done(function(response) {
rest.getMusicianInvites({ session_id: sessionId, sender: context.JK.currentUserId })
.done(function(response) {
response.map(function(item) {
var dd = item['receiver'];
existingInvites.push(dd.id);
@ -164,17 +163,14 @@
invitedFriends.map(function(invite_id) {
if (!_inviteExists(invite_id)) {
callCount++;
var invite = {
music_session: sessionId,
receiver: invite_id
};
$.ajax({
type: "POST",
url: "/api/invitations",
data: invite
}).done(function(response) {
rest.createMusicianInvite({
music_session: sessionId,
receiver: invite_id
})
.done(function(response) {
callCount--;
}).fail(app.ajaxError);
})
.fail(app.ajaxError);
}
});
// TODO - this is the second time I've used this pattern.

View File

@ -762,6 +762,26 @@
});
}
function getMusicianInvites(options) {
return $.ajax({
type: "GET",
dataType: "json",
data: options,
url: '/api/invitations'
})
}
function createMusicianInvite(options) {
return $.ajax({
type: "POST",
dataType: "json",
url: '/api/invitations',
contentType: 'application/json',
processData:false,
data: JSON.stringify(options)
})
}
function postFeedback(email, body) {
return $.ajax({
type: "POST",
@ -1228,6 +1248,8 @@
this.getSession = getSession;
this.getClientDownloads = getClientDownloads;
this.createEmailInvitations = createEmailInvitations;
this.createMusicianInvite = createMusicianInvite;
this.getMusicianInvites = getMusicianInvites;
this.postFeedback = postFeedback;
this.getFeeds = getFeeds;
this.serverHealthCheck = serverHealthCheck;

View File

@ -114,10 +114,10 @@
.session-list {
height: 250px;
overflow: auto;
text-align: center;
text-align: left;
ul#scheduled-session-list {
margin-left: 0px;
margin-left: 3px;
list-style: none;
li {
margin-bottom: 5px;