Commit f67a034d92a5422a1cafc6585d7714e2d924b3ef
1 parent
f7cbb6b9
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Do not duplicate click events in lead-button
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
public/javascripts/article-lead-and-body.js
1 | jQuery(function($) { | 1 | jQuery(function($) { |
2 | + $(".lead-button").die('click'); | ||
2 | $(".lead-button").live('click', function(){ | 3 | $(".lead-button").live('click', function(){ |
3 | article_id = this.getAttribute("article_id"); | 4 | article_id = this.getAttribute("article_id"); |
4 | $(this).toggleClass('icon-add').toggleClass('icon-remove'); | 5 | $(this).toggleClass('icon-add').toggleClass('icon-remove'); |