Skip to content

Commit

Permalink
Fix for jQuery 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Aug 1, 2014
1 parent 3041891 commit 11a7055
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/likes.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
$(function() {

$(".likes .showMore").live("click", function(e) {
$(document).on("click", ".likes .showMore", function(e) {
e.preventDefault();
ETSheet.loadSheet("onlineSheet", "conversation/liked.view/"+$(this).parents(".post").data("id"));
});

$(".likes .like-button").live("click", function(e) {
$(document).on("click", ".likes .like-button", function(e) {
e.preventDefault();
var area = $(this).parents(".likes");
area.find(".like-button").html(area.hasClass("liked") ? T("Like") : T("Unlike"));
Expand Down

0 comments on commit 11a7055

Please sign in to comment.