Revision ba24920d
Correctif pour IE (#270).
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@5157 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigigraph/public/js/loader.js | ||
---|---|---|
21 | 21 |
|
22 | 22 |
show: function() { |
23 | 23 |
this.clients += 1; |
24 |
if (this.element.getStyle("display") == "block") { |
|
24 |
if (!$chk(this.element) || this.element.getStyle("display") == "block") {
|
|
25 | 25 |
return this; |
26 | 26 |
} |
27 | 27 |
this.logger.log("Showing spinner"); |
... | ... | |
31 | 31 |
|
32 | 32 |
hide: function() { |
33 | 33 |
this.clients -= 1; |
34 |
if (this.clients > 0) return this; // Encore des demandes d'affichage en attente |
|
34 |
// Encore des demandes d'affichage en attente |
|
35 |
if (!$chk(this.element) || this.clients > 0) return this; |
|
35 | 36 |
if (this.element.getStyle("display") == "none") return this; |
36 | 37 |
this.logger.log("Hiding spinner"); |
37 | 38 |
this.element.setStyle("display", "none"); |
Also available in: Unified diff