mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Tooltip starring is now optomistic. Why bother waiting for a callback? It seems faster this way.
This commit is contained in:
parent
7b9cb98202
commit
b7379b9532
1 changed files with 6 additions and 6 deletions
|
@ -1780,10 +1780,10 @@
|
|||
var story = this.model.get_story(story_id);
|
||||
$button.removeClass('NB-unstarred');
|
||||
$button.closest('.story').addClass('NB-story-starred');
|
||||
$button.attr({'title': 'Saved!'});
|
||||
$button.tipsy('hide'); $button.tipsy('show');
|
||||
$button.attr({'title': 'Remove bookmark'});
|
||||
this.model.mark_story_as_starred(story_id, story.story_feed_id, function() {
|
||||
$button.attr({'title': 'Saved!'});
|
||||
$button.tipsy('hide'); $button.tipsy('show');
|
||||
$button.attr({'title': 'Remove bookmark'});
|
||||
});
|
||||
this.update_starred_count();
|
||||
},
|
||||
|
@ -1794,10 +1794,10 @@
|
|||
$button.removeClass('NB-unstarred');
|
||||
});
|
||||
$button.closest('.story').removeClass('NB-story-starred');
|
||||
$button.attr({'title': 'Removed'});
|
||||
$button.tipsy('hide'); $button.tipsy('show');
|
||||
$button.attr({'title': 'Save this story for later'});
|
||||
this.model.mark_story_as_unstarred(story_id, function() {
|
||||
$button.attr({'title': 'Removed'});
|
||||
$button.tipsy('hide'); $button.tipsy('show');
|
||||
$button.attr({'title': 'Save this story for later'});
|
||||
});
|
||||
this.update_starred_count();
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue