mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-20 05:14:44 +00:00
Fixing broken click handler for feed selector.
This commit is contained in:
parent
c7dd608885
commit
611b857acc
2 changed files with 6 additions and 3 deletions
|
@ -75,7 +75,7 @@ NEWSBLUR.Views.FeedSelector = Backbone.View.extend({
|
||||||
filter_feed_selector: function(e) {
|
filter_feed_selector: function(e) {
|
||||||
var $input = this.$(".NB-feeds-selector-input");
|
var $input = this.$(".NB-feeds-selector-input");
|
||||||
var input = $input.val().toLowerCase();
|
var input = $input.val().toLowerCase();
|
||||||
if (input == this.last_input) return;
|
if (input == this.last_input && input.length) return;
|
||||||
this.last_input = input;
|
this.last_input = input;
|
||||||
|
|
||||||
this.selected_feeds.each(function(feed) {
|
this.selected_feeds.each(function(feed) {
|
||||||
|
|
|
@ -291,7 +291,7 @@ NEWSBLUR.Views.FeedTitleView = Backbone.View.extend({
|
||||||
|
|
||||||
open: function(e, options) {
|
open: function(e, options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
if (this.options.feed_chooser) return;
|
if (this.options.feed_chooser && !options.ignore_feed_selector) return;
|
||||||
if (this.options.type != 'feed') return;
|
if (this.options.type != 'feed') return;
|
||||||
if (e.which >= 2) return;
|
if (e.which >= 2) return;
|
||||||
if (e.which == 1 && $('.NB-menu-manage-container:visible').length) return;
|
if (e.which == 1 && $('.NB-menu-manage-container:visible').length) return;
|
||||||
|
@ -324,6 +324,9 @@ NEWSBLUR.Views.FeedTitleView = Backbone.View.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
highlight_event: function(e) {
|
highlight_event: function(e) {
|
||||||
|
if (this.$el.hasClass('NB-feed-selector-active')) {
|
||||||
|
return this.open(e, {'ignore_feed_selector': true});
|
||||||
|
}
|
||||||
return this.highlight();
|
return this.highlight();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue