Browse Source

UI-1097: Added the new callback trigger in the SmartPBX so that the Provisioner popup doesn't close even in case of errors

4.3
Jean-Roch Maitre 11 years ago
parent
commit
ebe49bb77a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      submodules/devices/devices.js

+ 3
- 1
submodules/devices/devices.js View File

@ -164,7 +164,7 @@ define(function(require){
if(type === 'sip_device' && monster.config.api.provisioner) {
monster.pub('common.chooseModel.render', {
callback: function(dataModel) {
callback: function(dataModel, callbackCommonSuccess) {
self.callApi({
resource: 'device.create',
data: {
@ -173,6 +173,8 @@ define(function(require){
},
success: function(data, status) {
callback(data.data);
callbackCommonSuccess && callbackCommonSuccess();
}
});
},


Loading…
Cancel
Save