Skip to content

Commit

Permalink
joomla 4
Browse files Browse the repository at this point in the history
  • Loading branch information
diddipoeler committed Mar 24, 2023
1 parent d9302fc commit f1aad40
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions admin/views/players/tmpl/default_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,28 @@
<script>
var last_value;
var current_value;
var attribute_cbnummer;

jQuery(document).on("click","select",function(){
last_value = $(this).val();
attribute_cbnummer = $(this).attr('cbnummer');

}).on("change","select",function(){
current_value = $(this).val();

console.log('last value - '+last_value);
console.log('current value - '+current_value);
console.log('attribute_cbnummer - '+attribute_cbnummer);

if ( last_value != current_value )
{
console.log('geändert');

}
else
{
console.log('keine änderung');
}
});

</script>
Expand Down Expand Up @@ -269,8 +284,7 @@ class="form-control form-control-inline"
'select.genericlist',
$this->lists['agegroup'],
'agegroup' . $this->item->id,
$inputappend . 'class="form-control form-control-inline" size="1" onchange="document.getElementById(\'cb' .
$this->count_i . '\').checked=true"' . $append,
$inputappend . ' cbnummer="cb' . $this->count_i . '" class="form-control form-control-inline" size="1" ' . $append,
'value', 'text', $this->item->agegroup_id
);
?>
Expand All @@ -287,7 +301,7 @@ class="form-control form-control-inline"
echo JHtmlSelect::genericlist(
$this->lists['nation'],
'country' . $this->item->id,
$inputappend . ' class="form-control form-control-inline" style="width:140px; ' . $append . '" onchange="document.getElementById(\'cb' . $this->count_i . '\').checked=true"',
$inputappend . ' cbnummer="cb' . $this->count_i . '" class="form-control form-control-inline" style="width:140px; ' . $append . '" ',
'value',
'text',
$this->item->country
Expand All @@ -301,10 +315,11 @@ class="form-control form-control-inline"
{
$append = ' background-color:#FFCCCC;';
}

echo JHtmlSelect::genericlist(
$this->lists['positions'],
'position' . $this->item->id,
$inputappend . 'class="form-control form-control-inline" style="width:140px; ' . $append . '" onchange="document.getElementById(\'cb' . $this->count_i . '\').checked=true"',
$inputappend . ' cbnummer="cb' . $this->count_i . '" class="form-control form-control-inline" style="width:140px; ' . $append . ' " ',
'value',
'text',
$this->item->position_id
Expand Down

0 comments on commit f1aad40

Please sign in to comment.