summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js')
-rw-r--r--public/js/app.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/public/js/app.js b/public/js/app.js
index 4bc8cc1..3124f41 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -71,7 +71,13 @@ App.SipAccount = DS.Model.extend({
switchboardEntrys: DS.hasMany('App.SwitchboardEntry'),
phoneNumbers: DS.hasMany('App.PhoneNumber'),
callerName: DS.attr('string'),
- authName: DS.attr('string')
+ authName: DS.attr('string'),
+
+ phoneNumberShortList: Ember.computed(function() {
+ var phoneNumbers = this.get('phoneNumbers');
+ return phoneNumbers.slice(0,amount_of_displayed_phone_numbers);
+ }).property('phoneNumbers.@each.number')
+
});
App.PhoneNumber = DS.Model.extend({