summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-24 16:43:42 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-24 16:43:42 +0200
commita24aee0fdfcbbc2200ad05ee5b789aec5988f1ad (patch)
treeb2b8f1201c4d483174a6e22e98492be4ff2d0048 /public
parente0c3ca61eeed9b9ac6d5786809e023f5dc27c069 (diff)
First step to provide an attended transfer.
Diffstat (limited to 'public')
-rw-r--r--public/js/app.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 6d8448a..efc0752 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -27,10 +27,14 @@ App.SwitchboardRoute = Ember.Route.extend({
// Controller
App.SwitchboardController = Ember.ObjectController.extend({
transfer_blind: function(call_id, destination) {
- console.log('test')
request_url = '/api/v1/calls/' + call_id + '.json';
jQuery.get(request_url, { transfer_blind: destination });
- }
+ },
+
+ transfer_attended: function(call_id, destination) {
+ request_url = '/api/v1/calls/' + call_id + '.json';
+ jQuery.get(request_url, { transfer_attended: destination });
+ }
});
// Models