Only set the active item when there is one (not the case for quota)
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
d8f10e96a2
commit
b0171a7584
|
@ -123,7 +123,9 @@
|
||||||
_onClickItem: function(ev) {
|
_onClickItem: function(ev) {
|
||||||
var $target = $(ev.target);
|
var $target = $(ev.target);
|
||||||
var itemId = $target.closest('li').attr('data-id');
|
var itemId = $target.closest('li').attr('data-id');
|
||||||
this.setActiveItem(itemId);
|
if (!_.isUndefined(itemId)) {
|
||||||
|
this.setActiveItem(itemId);
|
||||||
|
}
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue