diff --git a/assets/studiptable.js b/assets/studiptable.js index cb8c480286411351888c0bcb61320734c99d612b..51b5e2d88d7ffc9056889b0ce27ce6d7b5e249f5 100644 --- a/assets/studiptable.js +++ b/assets/studiptable.js @@ -82,6 +82,9 @@ STUDIP.table = function (element, opt) { } else if (sortType === 'int') { sort1 = parseFloat('0' + $(a).find('td:nth-child(' + headerIndex + ')').text().trim()); sort2 = parseFloat('0' + $(b).find('td:nth-child(' + headerIndex + ')').text().trim()); + } else if (sortType === 'sorter') { + sort1 = parseFloat('0' + $(a).find('td:nth-child(' + headerIndex + ')').data('sorter')); + sort2 = parseFloat('0' + $(b).find('td:nth-child(' + headerIndex + ')').data('sorter')); } else { sort1 = $(a).find('td:nth-child(' + headerIndex + ')').text().trim().toLowerCase(); sort2 = $(b).find('td:nth-child(' + headerIndex + ')').text().trim().toLowerCase(); diff --git a/views/presenting/details.php b/views/presenting/details.php index d72ae79de94ec2e8ca90285b37dfc7b669f9bb82..e40ed80bd7a6cf4ac192814a387cf63204d4cb0b 100644 --- a/views/presenting/details.php +++ b/views/presenting/details.php @@ -18,10 +18,10 @@ if ($icon) { <div> <?= htmlReady($marketplugin['short_description']) ?> </div> -<?if ($marketplugin['description'] || $marketplugin['long_description']) : ?> +<?if ($marketplugin['description']) : ?> <div> <br> - <?= formatReady($marketplugin['description'] ?: $marketplugin['long_description']) ?> + <?= formatReady($marketplugin['description']) ?> </div> <? endif ?> <? if (count($marketplugin->images) > 0 || $marketplugin->isWritable()) : ?> diff --git a/views/presenting/overview_list.php b/views/presenting/overview_list.php index 7f4c65a7c2c68a356cb89051d3418d9d5db4a783..feb38b644dd30b336aca76f5030eeb0091a24ac2 100644 --- a/views/presenting/overview_list.php +++ b/views/presenting/overview_list.php @@ -10,7 +10,7 @@ <th data-sort-type="int"> <?= _('Standorte') ?> </th> - <th data-sort-type="int"> + <th data-sort-type="sorter"> <?= _('Letzte �nderung') ?> </th> <th data-sort-type="int"> @@ -32,7 +32,7 @@ <td> <?= htmlReady($marketplugin->uses->count()) ?> </td> - <td> + <td data-sorter="<?= $marketplugin->releases->orderBy('chdate DESC')->first()->chdate ?>"> <?= strftime('%x', $marketplugin->releases->orderBy('chdate DESC')->first()->chdate) ?> </td> <td>