This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

dzintars
dzintars

Hello, is same way to erase all set filters in lists. I want to make it on toolbar botton. Maybe is same way to hard refresh list without all filters.

dzintars
dzintars

Is this right or no, i din't know, but i found solution for me.

In toolbar i make the button with ajax request to controller function:

<button class="btn btn-default oc-icon-eraser" data-request="onClearFiler" data-stripe-load-indicator> Clear Filters

And in controller write the function: public function onClearFiler() { \Flash::success('Filters are cleared!'); \Session::forget('widget'); $current = \Url::current(); return \Redirect::to($current); }

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.