reset page when a filter is applied

stable
Juanfran 2015-03-03 09:00:31 +01:00 committed by David Barragán Merino
parent 202ffeda79
commit 4a3e60e834
1 changed files with 3 additions and 0 deletions

View File

@ -530,6 +530,9 @@ IssuesFiltersDirective = ($log, $location, $rs, $confirm, $loading, $template) -
selectQFilter = debounceLeading 100, (value) ->
return if value is undefined
$ctrl.replaceFilter("page", null)
if value.length == 0
$ctrl.replaceFilter("q", null)
$ctrl.storeFilters()