Explorar el Código

No Ticket. Destroying spinner after each request.

Aaron Newton hace 15 años
padre
commit
26bff00906
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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)
 		}, options));
+		request.addEvent('complete', function(){
+			if (this.spinner) {
+				this.spinner.destroy();
+				this.spinner = null;
+			}
+		}.bind(request));
 		request.setHeader('X-Hue-JFrame', 'true');
 	},