Rev 1899 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1899 | Rev 1905 | ||
|---|---|---|---|
| Line 85... | Line 85... | ||
| 85 | this.PhoneNumberList = Storage_GetParameters("PhoneCalls"); |
85 | this.PhoneNumberList = Storage_GetParameters("PhoneCalls"); |
| 86 | if (this.PhoneNumberList) |
86 | if (this.PhoneNumberList) |
| 87 | { |
87 | { |
| 88 | for(k in this.PhoneNumberList) |
88 | for(k in this.PhoneNumberList) |
| 89 | { |
89 | { |
| - | 90 | var tmp = eval("(" + this.PhoneNumberList[k] + ")"); |
|
| - | 91 | if (tmp["direction"]=="in") |
|
| 90 | this.PhoneNumberListKeys.push(k); |
92 | this.PhoneNumberListKeys.push(k); |
| 91 | //Log("hittade: "+k+"\n"); |
93 | //Log("hittade: "+k+"\n"); |
| 92 | } |
94 | } |
| 93 | this.PhoneNumberListKeys.sort(function(a, b) {return b - a;}); |
95 | this.PhoneNumberListKeys.sort(function(a, b) {return b - a;}); |
| 94 | if (this.PhoneNumberListKeys.length > this.numberOfItemsInPhonebook) { |
96 | if (this.PhoneNumberListKeys.length > this.numberOfItemsInPhonebook) { |