Commit f45782c8 authored by Randall Leeds's avatar Randall Leeds

Move bulky search constants into app.coffee

parent 804f2f34
...@@ -5,6 +5,12 @@ imports = [ ...@@ -5,6 +5,12 @@ imports = [
'h.streamfilter' 'h.streamfilter'
] ]
SEARCH_FACETS = ['text', 'tags', 'uri', 'quote', 'since', 'user', 'results']
SEARCH_VALUES =
group: ['Public', 'Private'],
since: ['5 min', '30 min', '1 hour', '12 hours',
'1 day', '1 week', '1 month', '1 year']
class App class App
scope: scope:
...@@ -228,6 +234,8 @@ class App ...@@ -228,6 +234,8 @@ class App
$rootScope.applySort "Location" $rootScope.applySort "Location"
$scope.query = $location.search() $scope.query = $location.search()
$scope.searchFacets = SEARCH_FACETS
$scope.searchValues = SEARCH_VALUES
$scope.search = (searchCollection) -> $scope.search = (searchCollection) ->
return unless annotator.discardDrafts() return unless annotator.discardDrafts()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment