Skip to content

Commit

Permalink
Bugfix: broken decision has made the [+] button collapse entries
Browse files Browse the repository at this point in the history
My logic error using jQuery.  Even an empty jQuery wrapped selection is 'true';
use either .is or .length when you want a boolean result.
  • Loading branch information
scc committed Aug 3, 2008
1 parent b30ddbc commit 6452c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Ajax/htdocs/images/common.js
Expand Up @@ -668,7 +668,7 @@ function firehose_fix_up_down(id, new_state) {
$updown.setClass(new_state);

// When ad admin nixes something, it should collapse and get out of the way.
if ( fh_is_admin && (new_state=='voteddown' || $('#title-'+id+':contains("Comment:")')) )
if ( fh_is_admin && (new_state=='voteddown' || $('#title-'+id).is(':contains("Comment:")')) )
firehose_collapse_entry(id);
}
}
Expand Down

0 comments on commit 6452c87

Please sign in to comment.