follow links on profile page [ci skip]
This commit is contained in:
parent
cf85f15fcc
commit
9a547b8161
1 changed files with 6 additions and 1 deletions
|
|
@ -83,7 +83,12 @@ app.views.SmallFrame = app.views.Post.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
favoritePost : function(evt) {
|
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();
|
var prevDimension = this.dimensionsClass();
|
||||||
this.model.toggleFavorite();
|
this.model.toggleFavorite();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue