Skip to content

Commit

Permalink
Fixed new member number
Browse files Browse the repository at this point in the history
  • Loading branch information
God Mod committed Jul 6, 2015
1 parent 6030f33 commit fe0d8fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/rli_member.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ public function display($with_form=false) {
'DELDIS' => 'disabled="disabled"',
));
if(isset($detail_raid_list)) $this->detailed_times_list($key, $member['raid_list']);
$key++;
}//foreach members
//a member to copy from for js-addition
if($with_form) {
Expand All @@ -311,7 +312,7 @@ public function display($with_form=false) {
unset($this->members[999]);
$this->jquery->qtip('#dt_help', $this->user->lang('rli_help_dt_member'), array('my' => 'center right', 'at' => 'left center'));
$this->tpl->add_js(
"var rli_key = ".(($key) ? $key+1 : $key).";
"var rli_key = ".(($key) ? $key : 1).";
$('.del_mem').click(function() {
$(this).removeClass('del_mem');
".($this->rli->config('no_del_warn') ? "$('#'+$(this).data('id')).css('display', 'none');
Expand Down

0 comments on commit fe0d8fb

Please sign in to comment.