Browse Source

Make sure we don't build up a huge queue of animations.

Joe Clarke 7 years ago
parent
commit
8cbfa7ffaf
1 changed files with 4 additions and 0 deletions
  1. 4 0
      www/index.php

+ 4 - 0
www/index.php

@@ -275,6 +275,10 @@ function refresh() {
 				$('#psr_'+k).attr('title', rtitle);
 
 				if (prs == PROVISION_IN_PROGRESS) {
+					if ('undefined' !== typeof row_intervals[k]) {
+						clearInterval(row_intervals[k]);
+						$('#psr_'+k).stop(true, true);
+					}
 					var pulseint = setInterval(function() {
 						$('#psr_'+k).animate({
 								backgroundColor : '#919191',