Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 19:26:09 +01:00

Fix IE unsupported javascript construction (#2736)

This commit is contained in:
Lauris BH 2017-10-19 09:00:36 +03:00 committed by Lunny Xiao
parent 847272a70d
commit 222244836f

View file

@ -1886,14 +1886,14 @@ function initFilterBranchTagDropdown(selector) {
}
return null;
},
getSelectedIndexInFiltered() {
getSelectedIndexInFiltered: function() {
for (var i = 0, j = this.filteredItems.length; i < j; ++i) {
if (this.filteredItems[i].selected)
return i;
}
return -1;
},
scrollToActive() {
scrollToActive: function() {
var el = this.$refs['listItem' + this.active];
if (!el || el.length === 0) {
return;