key.setScope('list');
this.options.issuesView.selected = this.$el.parent().children().index(this.$el);
- this.$el.parent().children().removeClass('active');
- this.$el.addClass('active');
+ this.options.issuesView.selectIssue(this.$el, false);
var that = this,
app = this.options.app,
emptyView: NoIssuesView,
+ initialize: function() {
+ var openIssue = function(el) { el.click(); };
+ this.openIssue = _.debounce(openIssue, 300);
+ },
+
+
itemViewOptions: function () {
return {
issuesView: this,
},
+ selectIssue: function(el, open) {
+ this.$('.active').removeClass('active');
+ el.addClass('active');
+ if (open) {
+ this.openIssue(el);
+ }
+ },
+
+
selectFirst: function() {
this.selected = -1;
this.selectNext();
if (bottom > containerHeight) {
container.scrollTop(container.scrollTop() - containerHeight + bottom);
}
- child.click();
+ this.selectIssue(child, true);
}
},
if (top < 0) {
container.scrollTop(container.scrollTop() + top);
}
- child.click();
+ this.selectIssue(child, true);
}
},