Skip to content

Commit

Permalink
UI-1357: Fixed prompts with new format of 3.20
Browse files Browse the repository at this point in the history
  • Loading branch information
JRMaitre committed Apr 10, 2015
1 parent 2538791 commit a63d1ba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions whapps/voip/prompt/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,20 +299,20 @@ winkstart.module('voip', 'prompt', {
prompts = [];

$.each(data, function(k,v) {
var promptSplit = v.split('%2F'),
var name = v.id,
promptSplit = name.split('%2F'),
prompt = {};

prompt.language = promptSplit.length > 1 ? promptSplit[0] : '-';

if(THIS.adminMode) {
prompt.link = apiUrl + '/accounts/media/' + v + '/raw?auth_token=' + authToken;
prompt.link = apiUrl + '/accounts/media/' + name + '/raw?auth_token=' + authToken;
}
else {
prompt.link = apiUrl + '/accounts/' + accountId + '/media/' + v + '/raw?auth_token=' + authToken;
prompt.link = apiUrl + '/accounts/' + accountId + '/media/' + name + '/raw?auth_token=' + authToken;
}


prompt.id = v;
prompt.id = name;

prompts.push(prompt);
});
Expand Down

0 comments on commit a63d1ba

Please sign in to comment.