mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
clearAll for product page also clears any text search filter
This commit is contained in:
@@ -25,3 +25,7 @@ Darkswarm.controller "ProductsCtrl", ($scope, $rootScope, Products, OrderCycle,
|
||||
$scope.activeTaxons.map( (taxon_id) ->
|
||||
Taxons.taxons_by_id[taxon_id].name
|
||||
).join(" & ") if $scope.activeTaxons?
|
||||
|
||||
$scope.clearAll = ->
|
||||
$scope.query = ""
|
||||
FilterSelectorsService.clearAll()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
.row.animate-hide
|
||||
.small-12.columns
|
||||
.alert-box.search-alert.ng-scope{"ng-show" => "visible", "ofn-inline-alert" => ""}
|
||||
%a.right{"ng-click" => "close()"}
|
||||
%a.right{"ng-click" => "clearAll()"}
|
||||
Clear all
|
||||
%i.ofn-i_009-close
|
||||
%span.filter-label
|
||||
|
||||
Reference in New Issue
Block a user