Changeset 2516:f02a001e787e
- Timestamp:
- 07/29/10 09:58:55 (6 weeks ago)
- Author:
- Ferllings <cedric@…>
- Branch:
- default
- Message:
-
[ihm] Infinite timeout for events requests (close #290)
- Location:
- src/domogik/ui/djangodomo/core/templates/design
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2494
|
r2516
|
|
| 97 | 97 | url: url, |
| 98 | 98 | dataType: "jsonp", |
| 99 | | timeout: 120000, // 2 minute |
| 100 | 99 | error: function (xOptions, textStatus) { |
| 101 | | if (textStatus == 'timeout') { |
| 102 | | $.eventRequest(devices, events); |
| 103 | | } else { |
| 104 | | $.notification('error', 'Event update : Lost REST server connection'); |
| 105 | | } |
| | 100 | $.notification('error', 'Event update : Lost REST server connection'); |
| 106 | 101 | }, |
| 107 | 102 | success: function (data) { |
| … |
… |
|
| 127 | 122 | url: url, |
| 128 | 123 | dataType: "jsonp", |
| 129 | | timeout: 120000, // 2 minute |
| 130 | 124 | error: function (xOptions, textStatus) { |
| 131 | | if (textStatus == 'timeout') { |
| 132 | | $.eventUpdate(ticket, events); |
| 133 | | } else { |
| 134 | | $.notification('error', 'Event update : Lost REST server connection'); |
| 135 | | } |
| | 125 | $.notification('error', 'Event update : Lost REST server connection'); |
| 136 | 126 | }, |
| 137 | 127 | success: function (data) { |
-
|
r2510
|
r2516
|
|
| 1 | 1 | .block { |
| | 2 | position:relative; |
| 2 | 3 | display:inline-block; |
| 3 | 4 | background-color:#eeeeee; |