mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Renaming feeds front-end.
This commit is contained in:
parent
ffd370375c
commit
4b5510d1c1
1 changed files with 12 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ NEWSBLUR.ReaderManageFeed.prototype = {
|
||||||
|
|
||||||
this.$manage.bind('click', $.rescope(this.handle_click, this));
|
this.$manage.bind('click', $.rescope(this.handle_click, this));
|
||||||
this.$manage.bind('change', $.rescope(this.handle_change, this));
|
this.$manage.bind('change', $.rescope(this.handle_change, this));
|
||||||
|
this.$manage.bind('keyup', $.rescope(this.handle_keyup, this));
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize_feed: function(feed_id) {
|
initialize_feed: function(feed_id) {
|
||||||
|
|
@ -355,5 +356,16 @@ NEWSBLUR.ReaderManageFeed.prototype = {
|
||||||
var $submit = $('input[type=submit]', self.$manage);
|
var $submit = $('input[type=submit]', self.$manage);
|
||||||
$submit.removeClass("NB-disabled").removeAttr('disabled').attr('value', 'Save');
|
$submit.removeClass("NB-disabled").removeAttr('disabled').attr('value', 'Save');
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
handle_keyup: function(elem, e) {
|
||||||
|
var self = this;
|
||||||
|
|
||||||
|
$.targetIs(e, { tagSelector: 'input', childOf: '.NB-manage-rename' }, function($t, $p) {
|
||||||
|
if ($t.val() != self.feed.feed_title) {
|
||||||
|
var $submit = $('input[type=submit]', self.$manage);
|
||||||
|
$submit.removeClass("NB-disabled").removeAttr('disabled').attr('value', 'Save');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Loading…
Add table
Reference in a new issue