Fix bug in the view array service
This commit is contained in:
parent
d9c3c6689a
commit
2baa7fa14c
1 changed files with 3 additions and 1 deletions
4
static/js/services/angular-view-array.js
vendored
4
static/js/services/angular-view-array.js
vendored
|
@ -29,7 +29,7 @@ angular.module('quay').factory('AngularViewArray', ['$interval', function($inter
|
||||||
this.hasEntries = true;
|
this.hasEntries = true;
|
||||||
|
|
||||||
if (this.isVisible) {
|
if (this.isVisible) {
|
||||||
this.setVisible(true);
|
this.startTimer_();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ angular.module('quay').factory('AngularViewArray', ['$interval', function($inter
|
||||||
};
|
};
|
||||||
|
|
||||||
_ViewArray.prototype.startTimer_ = function() {
|
_ViewArray.prototype.startTimer_ = function() {
|
||||||
|
if (this.timerRef_) { return; }
|
||||||
|
|
||||||
var that = this;
|
var that = this;
|
||||||
this.timerRef_ = $interval(function() {
|
this.timerRef_ = $interval(function() {
|
||||||
that.showAdditionalEntries_();
|
that.showAdditionalEntries_();
|
||||||
|
|
Reference in a new issue