Sackgesicht VIP
Total posts: 1,636
30 May 2012 17:45

Like in Resources 1.5.x, there should be an optional "Reset all filters" box if more then 2 "Filter Warning Boxes" appear.

Like the button "Reset all filters" under advanced settings.

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
30 May 2012 20:12

Agree, there should be the same functionality link. I just do not know good way to add this button.


pepperstreet VIP
Total posts: 3,837
04 Oct 2012 19:36

Following and watching ;-)


Xtream VIP
Total posts: 129
05 Oct 2012 03:01

In my project I add "Reset all filters" button directly after "Filter Warning Boxes" and it look's like

if you need something the same, here is a solution. In com_cobalt/views/records/tmpl/default_markup_default.php around line 129-130 is a code

</ul>

    <div style="clear: both;"></div>

change it to

</ul>

<?php if(count($this->worns) >1 ):?>

                    <button class="btn btn-small filter_clear" type="button" onclick="Joomla.submitbutton('records.cleanall')">

                        <img src="/<?php echo JURI::root()?>media/mint/icons/16/cross-button.png" align="absmiddle" alt="<?php echo JText::_('CRESETFILTERS');?>" />

                        <?php echo JText::_('CRESETFILTERS');?></button>

                <?php endif;?>

    <div style="clear: both;"></div>

and you will have a last button with clear all filters. Better to make this changes in custom template.


Sergey
Total posts: 13,748
05 Oct 2012 03:16

Nice! Added to Cobalt 8 :)

Powered by Cobalt