Rev 2093 | Rev 2097 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2093 | Rev 2096 | ||
|---|---|---|---|
| Line 31... | Line 31... | ||
| 31 | { |
31 | { |
| 32 | return true; // continue |
32 | return true; // continue |
| 33 | } |
33 | } |
| 34 | 34 | ||
| 35 | var d = new Date(data.timestamp * 1000); |
35 | var d = new Date(data.timestamp * 1000); |
| 36 | data.time = d. |
36 | data.time = d.toLocaleString(); |
| 37 | 37 | ||
| 38 | if (data.direction === "in" && pageInstance.inText) |
38 | if (data.direction === "in" && pageInstance.inText) |
| 39 | { |
39 | { |
| 40 | data.direction = pageInstance.inText; |
40 | data.direction = pageInstance.inText; |
| 41 | } |
41 | } |
| Line 80... | Line 80... | ||
| 80 | /* Request the initial value from the server */ |
80 | /* Request the initial value from the server */ |
| 81 | requestServerData(); |
81 | requestServerData(); |
| 82 | 82 | ||
| 83 | 83 | ||
| 84 | /* Set timer for continious polling of the current values */ |
84 | /* Set timer for continious polling of the current values */ |
| 85 |
|
85 | // pageInstance.pollTimer = setInterval(requestServerData, 4000); |
| 86 | } |
86 | } |
| 87 | }; |
87 | }; |