Skip to content

Commit

Permalink
Fixed unworking compare marks
Browse files Browse the repository at this point in the history
  • Loading branch information
robrighter committed May 7, 2010
1 parent 2648431 commit fe3ca94
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion prod-buildout/js/friendpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ $(document).ready(function() {

$('#marknofollowbacks').bind('click', markNoFollowbacks);
$('#markfollowbacks').bind('click', markFollowbacks);
$('#marknfans').bind('click', markFans);
$('#markfans').bind('click', markFans);
$('#markfollowers').bind('click', markFollowers);
$('#markfollowing').bind('click', markFollowing);

Expand Down
12 changes: 6 additions & 6 deletions prod-buildout/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ var showError = function(error){
}

var startCompare = function(){
if(twcompare && (twcompare.userscreenname == $('.profile #compare input').val())){
//if(twcompare && (twcompare.userscreenname == $('.profile #compare input').val())){
//do nothing
}
else{
//}
//else{
//Show the progress bar and clear out any controls that may be visible
$('#miniprogressbox').slideDown('slow');
$('#compare #controls').slideUp('slow');
Expand All @@ -147,7 +147,7 @@ var startCompare = function(){
function(error){
showMiniError(error);
});
}
//}
};

var markNoFollowbacks = function(){
Expand All @@ -164,11 +164,11 @@ var markNoFollowbacks = function(){

var markFollowbacks = function(){
if(marked.followbacks){
_.map(twcompare.followbacks, unmarkUser);
_.map(twcompare.reciprications, unmarkUser);
$('#markfollowbacks').removeClass('selected');
}
else{
_.map(twcompare.followbacks, markUser);
_.map(twcompare.reciprications, markUser);
$('#markfollowbacks').addClass('selected');
}
marked.followbacks = !marked.followbacks;
Expand Down
2 changes: 1 addition & 1 deletion static/js/friendpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ $(document).ready(function() {

$('#marknofollowbacks').bind('click', markNoFollowbacks);
$('#markfollowbacks').bind('click', markFollowbacks);
$('#marknfans').bind('click', markFans);
$('#markfans').bind('click', markFans);
$('#markfollowers').bind('click', markFollowers);
$('#markfollowing').bind('click', markFollowing);

Expand Down
12 changes: 6 additions & 6 deletions static/js/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ var showError = function(error){
}

var startCompare = function(){
if(twcompare && (twcompare.userscreenname == $('.profile #compare input').val())){
//if(twcompare && (twcompare.userscreenname == $('.profile #compare input').val())){
//do nothing
}
else{
//}
//else{
//Show the progress bar and clear out any controls that may be visible
$('#miniprogressbox').slideDown('slow');
$('#compare #controls').slideUp('slow');
Expand All @@ -147,7 +147,7 @@ var startCompare = function(){
function(error){
showMiniError(error);
});
}
//}
};

var markNoFollowbacks = function(){
Expand All @@ -164,11 +164,11 @@ var markNoFollowbacks = function(){

var markFollowbacks = function(){
if(marked.followbacks){
_.map(twcompare.followbacks, unmarkUser);
_.map(twcompare.reciprications, unmarkUser);
$('#markfollowbacks').removeClass('selected');
}
else{
_.map(twcompare.followbacks, markUser);
_.map(twcompare.reciprications, markUser);
$('#markfollowbacks').addClass('selected');
}
marked.followbacks = !marked.followbacks;
Expand Down

0 comments on commit fe3ca94

Please sign in to comment.