Reduce length of line, make code better readable

This commit is contained in:
jos 2019-12-01 11:53:09 +01:00
parent 9d2067f281
commit eb9fb32038
1 changed files with 5 additions and 1 deletions

View File

@ -1495,7 +1495,11 @@ treemode._showAutoComplete = function (element) {
})
} else {
// definitely not a promise
if (result.options) { self.autocomplete.show(element, result.startFrom, result.options) } else { self.autocomplete.show(element, 0, result) }
if (result.options) {
self.autocomplete.show(element, result.startFrom, result.options)
} else {
self.autocomplete.show(element, 0, result)
}
}
} else { self.autocomplete.hideDropDown() }
}, 50)