Skip to content

Commit 7de0898

Browse files
Category view: also show filter settings when no tracks are selected
1 parent fc6b5c7 commit 7de0898

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

components/com_jtg/views/cat/tmpl/default.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100

101101
<?php
102102
if (empty($this->items)) {
103-
JFactory::getApplication()->enqueueMessage(JText::_('COM_JTG_LIST_NO_TRACK'), 'Warning');
104103
echo '<b>' . JText::_('COM_JTG_LIST_NO_TRACK') . '</b>';
105104
} else {
106105

@@ -123,12 +122,14 @@
123122
?>
124123
</div>
125124
<?php
126-
}?>
125+
}
126+
}
127+
?>
127128

128129
<form action="<?php echo $this->action; ?>" method="post"
129130
name="adminForm" id="adminForm">
130131
<?php
131-
if ($this->params->get('jtg_param_cat_filterbox', 1)) {
132+
if ($this->params->get('jtg_param_cat_filterbox', 1)) {
132133
$addborder='';
133134
if (version_compare(JVERSION, '4.0', 'lt')) $addborder='style="padding: 15px 0 0"';
134135
?>
@@ -144,7 +145,7 @@
144145
</div>
145146
<?php
146147
}
147-
if ($this->showlist) {
148+
if (!empty($this->items) && $this->showlist) {
148149
?>
149150
<table class="tracktable" style="width:100%;">
150151
<tr>
@@ -302,7 +303,7 @@ class="sectiontableheader<?php echo $this->escape($this->params->get('pageclass_
302303
</tbody>
303304
</table>
304305
</div>
305-
<?php }
306+
<?php
306307
} ?>
307308
<input type="hidden" name="option" value="com_jtg" /> <input
308309
type="hidden" name="task" value="" /> <input type="hidden"

0 commit comments

Comments
 (0)