Browse Source

UI-1099: now saving the ringback on the ring_group module of the baseGroup callflow, instead of saving it on the last module of the userGroup callflow

4.3
Maxime Roux 11 years ago
parent
commit
3140dcfb00
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      submodules/groups/groups.js

+ 8
- 3
submodules/groups/groups.js View File

@ -543,7 +543,7 @@ define(function(require){
groupsRenderRingback: function(data) {
var self = this,
silenceMediaId = 'silence_stream://300000',
ringGroupNode = data.callflow.flow;
ringGroupNode = data.baseCallflow.flow;
while(ringGroupNode.module !== 'ring_group' && '_' in ringGroupNode.children) {
ringGroupNode = ringGroupNode.children['_'];
@ -668,7 +668,7 @@ define(function(require){
};
}
self.groupsUpdateCallflow(data.callflow, function() {
self.groupsUpdateCallflow(data.baseCallflow, function() {
self.groupsUpdate(data.group, function(updatedGroup) {
popup.dialog('close').remove();
self.groupsRender({ groupId: data.group.id });
@ -680,7 +680,7 @@ define(function(require){
data.group.smartpbx.ringback.enabled = false;
}
self.groupsUpdateCallflow(data.callflow, function() {
self.groupsUpdateCallflow(data.baseCallflow, function() {
self.groupsUpdate(data.group, function(updatedGroup) {
popup.dialog('close').remove();
self.groupsRender({ groupId: data.group.id });
@ -1178,6 +1178,11 @@ define(function(require){
callback(null, data);
});
},
baseCallflow: function(callback) {
self.groupsGetBaseRingGroup(groupId, function(data) {
callback(null, data);
});
},
voicemails: function(callback) {
self.groupsListVMBoxes(function(data) {
callback(null, data);


Loading…
Cancel
Save