r39403 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39402‎ | r39403 | r39404 >
Date:11:28, 15 August 2008
Author:jojo
Status:old
Tags:
Comment:
turn cursor into wait cursor during loading of collection
Modified paths:
  • /trunk/extensions/Collection/collection/collection.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/collection/collection.js
@@ -102,6 +102,7 @@
103103 observers: [],
104104
105105 getItems: function() {
 106+ document.body.style.cursor = "wait";
106107 var self = this;
107108 sajax_request_type = "GET";
108109 try {
@@ -111,10 +112,12 @@
112113 result = JSON.parse(xhr.responseText);
113114 } catch(e) {
114115 alert(gettext('errorResponseText'));
 116+ document.body.style.cursor = "default";
115117 return;
116118 }
117119 self.deserialize(result.collection);
118120 self.notify();
 121+ document.body.style.cursor = "default";
119122 });
120123 } catch (e) {
121124 alert('XMLHttpRequest failed: ' + e);

Status & tagging log