Skip to content

Commit

Permalink
[#2304] Change a js == to ===
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Hammond committed Apr 30, 2012
1 parent 8b16f6a commit eaf8fdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/public/scripts/application.js
Expand Up @@ -1419,7 +1419,7 @@ CKAN.Utils = function($, my) {

my.setupUserFollowButton = function() {
var userFollowButton = $('#user_follow_button');
if (userFollowButton.attr('state') == 'follow') {
if (userFollowButton.attr('state') === 'follow') {
userFollowButton.off("click", userUnfollowClicked);
userFollowButton.html('Follow');
userFollowButton.on("click", userFollowClicked);
Expand All @@ -1432,7 +1432,7 @@ CKAN.Utils = function($, my) {

my.setupDatasetFollowButton = function() {
var datasetFollowButton = $('#dataset_follow_button');
if (datasetFollowButton.attr('state') == 'follow') {
if (datasetFollowButton.attr('state') === 'follow') {
datasetFollowButton.off("click", datasetUnfollowClicked);
datasetFollowButton.html('Follow');
datasetFollowButton.on("click", datasetFollowClicked);
Expand Down

0 comments on commit eaf8fdf

Please sign in to comment.