Browse Source

No Ticket. Destroying spinner after each request.

Aaron Newton 15 years ago
parent
commit
26bff00906
1 changed files with 6 additions and 0 deletions
  1. 6 0
      desktop/core/static/js/Source/CCS/CCS.JFrame.js

+ 6 - 0
desktop/core/static/js/Source/CCS/CCS.JFrame.js

@@ -707,6 +707,12 @@ CCS.JFrame = new Class({
 				}.bind(this));
 				}.bind(this));
 			}.bind(this)
 			}.bind(this)
 		}, options));
 		}, options));
+		request.addEvent('complete', function(){
+			if (this.spinner) {
+				this.spinner.destroy();
+				this.spinner = null;
+			}
+		}.bind(request));
 		request.setHeader('X-Hue-JFrame', 'true');
 		request.setHeader('X-Hue-JFrame', 'true');
 	},
 	},