Index: trunk/extensions/Collection/collection/collection.js |
— | — | @@ -102,6 +102,7 @@ |
103 | 103 | observers: [], |
104 | 104 | |
105 | 105 | getItems: function() { |
| 106 | + document.body.style.cursor = "wait"; |
106 | 107 | var self = this; |
107 | 108 | sajax_request_type = "GET"; |
108 | 109 | try { |
— | — | @@ -111,10 +112,12 @@ |
112 | 113 | result = JSON.parse(xhr.responseText); |
113 | 114 | } catch(e) { |
114 | 115 | alert(gettext('errorResponseText')); |
| 116 | + document.body.style.cursor = "default"; |
115 | 117 | return; |
116 | 118 | } |
117 | 119 | self.deserialize(result.collection); |
118 | 120 | self.notify(); |
| 121 | + document.body.style.cursor = "default"; |
119 | 122 | }); |
120 | 123 | } catch (e) { |
121 | 124 | alert('XMLHttpRequest failed: ' + e); |