master
Nick Sergeant 2012-04-12 22:14:22 -04:00
parent a5c83bfbac
commit 66becafc4d
1 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,7 @@
type: 'delete',
success: function() {
that.$el.removeClass('favorited');
that.$favorite.text('Favorite');
},
headers: {
'Authorization': 'ApiKey ' + window.user + ':' + window.api_key
@ -197,6 +198,7 @@
success: function(resp) {
that.$el.addClass('favorited');
that.model.set({'favorite_id': resp['id']}, {'silent': true});
that.$favorite.text('Favorited');
},
headers: {
'Authorization': 'ApiKey ' + window.user + ':' + window.api_key