* VRFS-1937 - centered text now left aligned on cerate session screen for scheduled sessions
This commit is contained in:
parent
3894b2cbd3
commit
b590548af5
|
|
@ -49,10 +49,9 @@
|
||||||
createInvitations(updateSessionID);
|
createInvitations(updateSessionID);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
$.ajax({
|
|
||||||
url: "/api/invitations",
|
rest.getMusicianInvites({ session_id: sessionId, sender: context.JK.currentUserId })
|
||||||
data: { session_id: sessionId, sender: context.JK.currentUserId }
|
.done(function(response) {
|
||||||
}).done(function(response) {
|
|
||||||
response.map(function(item) {
|
response.map(function(item) {
|
||||||
var dd = item['receiver'];
|
var dd = item['receiver'];
|
||||||
existingInvites.push(dd.id);
|
existingInvites.push(dd.id);
|
||||||
|
|
@ -164,17 +163,14 @@
|
||||||
invitedFriends.map(function(invite_id) {
|
invitedFriends.map(function(invite_id) {
|
||||||
if (!_inviteExists(invite_id)) {
|
if (!_inviteExists(invite_id)) {
|
||||||
callCount++;
|
callCount++;
|
||||||
var invite = {
|
rest.createMusicianInvite({
|
||||||
music_session: sessionId,
|
music_session: sessionId,
|
||||||
receiver: invite_id
|
receiver: invite_id
|
||||||
};
|
})
|
||||||
$.ajax({
|
.done(function(response) {
|
||||||
type: "POST",
|
|
||||||
url: "/api/invitations",
|
|
||||||
data: invite
|
|
||||||
}).done(function(response) {
|
|
||||||
callCount--;
|
callCount--;
|
||||||
}).fail(app.ajaxError);
|
})
|
||||||
|
.fail(app.ajaxError);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// TODO - this is the second time I've used this pattern.
|
// TODO - this is the second time I've used this pattern.
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
function postFeedback(email, body) {
|
||||||
return $.ajax({
|
return $.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
|
|
@ -1228,6 +1248,8 @@
|
||||||
this.getSession = getSession;
|
this.getSession = getSession;
|
||||||
this.getClientDownloads = getClientDownloads;
|
this.getClientDownloads = getClientDownloads;
|
||||||
this.createEmailInvitations = createEmailInvitations;
|
this.createEmailInvitations = createEmailInvitations;
|
||||||
|
this.createMusicianInvite = createMusicianInvite;
|
||||||
|
this.getMusicianInvites = getMusicianInvites;
|
||||||
this.postFeedback = postFeedback;
|
this.postFeedback = postFeedback;
|
||||||
this.getFeeds = getFeeds;
|
this.getFeeds = getFeeds;
|
||||||
this.serverHealthCheck = serverHealthCheck;
|
this.serverHealthCheck = serverHealthCheck;
|
||||||
|
|
|
||||||
|
|
@ -114,10 +114,10 @@
|
||||||
.session-list {
|
.session-list {
|
||||||
height: 250px;
|
height: 250px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
text-align: center;
|
text-align: left;
|
||||||
|
|
||||||
ul#scheduled-session-list {
|
ul#scheduled-session-list {
|
||||||
margin-left: 0px;
|
margin-left: 3px;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
li {
|
li {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue