Fix tabs handling in the old layout. These shims are temporary.

This commit is contained in:
Joseph Schorr 2015-04-22 15:58:05 -04:00
parent 560cdeb931
commit 75e32ad700
6 changed files with 27 additions and 6 deletions

View file

@ -171,7 +171,10 @@ angular.module('quay').factory('UIService', ['$timeout', '$rootScope', '$locatio
return;
}
uiService.clickElement(this);
var elem = this;
setTimeout(function() {
uiService.clickElement(elem);
}, 0);
});
};
@ -181,7 +184,10 @@ angular.module('quay').factory('UIService', ['$timeout', '$rootScope', '$locatio
$timeout(function() {
element.find('a[data-toggle="tab"]').each(function(index) {
if (index == 0) {
uiService.clickElement(this);
var elem = this;
setTimeout(function() {
uiService.clickElement(elem);
}, 0);
}
});
});