Commit c3105ac9e1e19ace453192fbc9efa2f71c4b3cce
1 parent
bf559b5f
Exists in
master
and in
29 other branches
article-lead: move js to separate file
article.js was being included twice. (ActionItem2956)
Showing
3 changed files
with
9 additions
and
7 deletions
Show diff stats
app/views/shared/_lead_and_body.rhtml
public/javascripts/article.js
1 | 1 | jQuery(function($) { |
2 | - $(".lead-button").live('click', function(){ | |
3 | - article_id = this.getAttribute("article_id"); | |
4 | - $(this).toggleClass('icon-add').toggleClass('icon-remove'); | |
5 | - $(article_id).slideToggle(); | |
6 | - return false; | |
7 | - }) | |
8 | 2 | $("#body-button").click(function(){ |
9 | 3 | $(this).toggleClass('icon-add').toggleClass('icon-remove'); |
10 | 4 | $('#article-body-field').slideToggle(); | ... | ... |