As fallback use first element in selection.

This commit is contained in:
Martin Edenhofer 2016-01-30 20:31:20 +01:00
parent db85fb5a1a
commit f52cf41a35

View file

@ -58,6 +58,11 @@
if (!id) {
id = _this.$widget.find('.dropdown-menu li:hover a').data('id')
}
// as fallback first element
if (!id) {
id = _this.$widget.find('.dropdown-menu li:first-child a').data('id')
}
_this.take(id)
return
}