mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Taking @mgeraci's suggestion and moving the Starred! message to the opposite gravity of the story titles pane.
This commit is contained in:
parent
109a82b680
commit
5632980430
1 changed files with 4 additions and 2 deletions
|
@ -107,13 +107,15 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
|
|||
},
|
||||
|
||||
toggle_starred: function() {
|
||||
var pane_alignment = NEWSBLUR.assets.preference('story_pane_anchor');
|
||||
var $star = this.$('.NB-storytitles-star');
|
||||
NEWSBLUR.app.story_titles.scroll_to_selected_story(this.model);
|
||||
|
||||
|
||||
if (this.model.get('starred')) {
|
||||
$star.attr({'title': 'Saved!'});
|
||||
$star.tipsy({
|
||||
gravity: 'sw',
|
||||
gravity: pane_alignment == 'north' ? 'nw' : 'sw',
|
||||
fade: true,
|
||||
trigger: 'manual',
|
||||
offsetOpposite: -1
|
||||
|
@ -143,7 +145,7 @@ NEWSBLUR.Views.StoryTitleView = Backbone.View.extend({
|
|||
$star.attr({'title': 'Removed'});
|
||||
|
||||
$star.tipsy({
|
||||
gravity: 'sw',
|
||||
gravity: pane_alignment == 'north' ? 'nw' : 'sw',
|
||||
fade: true,
|
||||
trigger: 'manual',
|
||||
offsetOpposite: -1
|
||||
|
|
Loading…
Add table
Reference in a new issue