Do not open/close widget on render result.

This commit is contained in:
Martin Edenhofer 2016-02-03 10:54:52 +01:00
parent fb99b5cb08
commit 37d787fc42

View file

@ -367,14 +367,6 @@
this.$widget.find('ul').html('')
this.log('result', term, result)
if (!result[0]) {
result = [{id:'', name: '-'}]
}
if (!this.active) {
this.open()
}
var elements = $()
for (var i = 0; i < result.length; i++) {
@ -383,7 +375,7 @@
element.attr('data-id', item.id)
element.text(App.Utils.htmlEscape(item.name))
element.addClass('u-clickable u-textTruncate')
if (i == result.length-1 && item.id != '') {
if (i == result.length-1) {
element.addClass('is-active')
}
if (item.keywords) {