Skip to content
This repository has been archived by the owner on Jun 5, 2022. It is now read-only.

Commit

Permalink
Draft bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrerichs committed Aug 30, 2019
1 parent 2df858e commit 36e1892
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/views/template/body_js.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@

<!-- Leave these at the end since they may require the above -->
<script src="<?=site_url('js/fflproject.js?1.10')?>"></script>
<script src="<?=site_url('js/fflproject-sse.js?1.14')?>"></script>
<script src="<?=site_url('js/fflproject-sse.js?1.16')?>"></script>
<script src="<?=site_url('js/fflproject-chat.js?1.09')?>"></script>
4 changes: 2 additions & 2 deletions application/views/user/season/draft/ajax_get_draft_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<?=$p->rank?>
</td>
<td>
<!-- <div class="hide-for-small-only"><strong><span class="selected-player-name"><?=$p->first_name.' '.$p->last_name?></span></strong> </div> -->
<div class="show-for-small-only"><strong><span class="selected-player-name"><?=$p->first_name[0].'.'.$p->last_name?></span></strong></div>
<div><strong><span class="selected-player-name"><?=$p->first_name.' '.$p->last_name?></span></strong> </div>
<!-- <div class="show-for-small-only"><strong><span class="selected-player-name"><?=$p->first_name[0].'.'.$p->last_name?></span></strong></div> -->
</td>
<td>
<?=$p->club_id?>
Expand Down
10 changes: 9 additions & 1 deletion js/fflproject-sse.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,15 @@ function sse_live_draft_events(live_draft)

$.each(live_draft.recent_picks,function(id,player){
// Update draft table to hide draft/watch buttons for recently drafted players
$('.draft-avail-'+player.player_id).text(player.team_name);
if ($('#draft-list-checkbox').checked)
{
$('.draft-avail-'+player.player_id).text(player.team_name);
}
else
{
$(loadContent('draft-list'));
}

// Update watch table to remove recently drafted players
if ($('.watch-avail-'+player.player_id).length > 0){loadContent('watch-list');}
//$('.watch-avail-'+player.player_id).remove();
Expand Down

1 comment on commit 36e1892

@Boblyng
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to revert back to the previous version as my stats didn't work after applying this fix.

Please sign in to comment.