follow links on profile page [ci skip]

This commit is contained in:
danielgrippi 2012-04-28 11:13:39 -07:00
parent cf85f15fcc
commit 9a547b8161

View file

@ -83,7 +83,12 @@ app.views.SmallFrame = app.views.Post.extend({
},
favoritePost : function(evt) {
if(evt) { evt.stopImmediatePropagation(); evt.preventDefault() }
if(evt) {
/* follow links instead of faving the targeted post */
if($(evt.target).is('a')) { return }
evt.stopImmediatePropagation(); evt.preventDefault();
}
var prevDimension = this.dimensionsClass();
this.model.toggleFavorite();