Message Filters Cleared - how do i stop it from loading?

ontarget

Active Member
Hi when I clear the filters from my list a "Message Filters Cleared" div appears.
I cant seem to find any setting to turn it off.
I dont really want to do this:
.uk-alert-success {display: none;} because this would hide other system mesages.

It is common to all joomla templates - I have searched the fabrik component for
JFactory::getApplication()->enqueueMessage('Filters cleared', 'message'); but cant find it.
Does anyone know how to turn off this message for fabrik only?
Thanks
 

Attachments

  • Screen shot 2015-09-02 at 10.01.32.png
    Screen shot 2015-09-02 at 10.01.32.png
    11.5 KB · Views: 117
You guessed correctly that we use enqueueMessage(), and hence the message simply appears in the system wide J! message box, so can't be CSS'ed out. But it's using a language constant, not the literal English string.

it's in ./components/com_fabrik/controllers/list.php, in clearfilter(), around line 126.

PHP:
        $app->enqueueMessage(FText::_('COM_FABRIK_FILTERS_CLEARED'));

I just made a small tweak to that, so it's now ...

PHP:
        $msg = FText::_('COM_FABRIK_FILTERS_CLEARED');
       
        if (!empty($msg))
        {
            $app->enqueueMessage($msg);
        }

... so, if you update from github, then create a language override (using the standard J! language override admin) for COM_FABRIK_FILTERS_CLEARED as an empty string, it should skip enqueueing the msg.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top