mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 17:30:36 +00:00
Fix IE unsupported javascript construction (#2736)
This commit is contained in:
parent
847272a70d
commit
222244836f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue