Revision 27d628c4
b/snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js | ||
---|---|---|
447 | 447 |
}, |
448 | 448 |
|
449 | 449 |
disconnect: function(cb) { |
450 |
// MOCK |
|
451 | 450 |
var self = this; |
452 |
window.setTimeout(function() { |
|
453 |
cb() |
|
454 |
}, 2000); |
|
455 |
window.setTimeout(function() { |
|
456 |
self.set({port_id: undefined}); |
|
457 |
}, 3000); |
|
451 |
var complete = function() { |
|
452 |
self.set({status: 'DISCONNECTING'}); |
|
453 |
cb(); |
|
454 |
} |
|
455 |
this.get('port').disconnect(cb); |
|
458 | 456 |
} |
459 | 457 |
}); |
460 | 458 |
|
Also available in: Unified diff