aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/coffee
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-03-05 15:23:11 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-03-05 15:23:11 +0100
commit8f337247a3ca497958b4f6f2fa4be33863a736b1 (patch)
treefd06770e52e7288ac220969b8c800a3b483d65ba /server/sonar-web/src/main/coffee
parent6ea79b66d386c0ed4198914328bb8fa6e6fcf4be (diff)
downloadsonarqube-8f337247a3ca497958b4f6f2fa4be33863a736b1.tar.gz
sonarqube-8f337247a3ca497958b4f6f2fa4be33863a736b1.zip
SONAR-5839 send details about open facets
Diffstat (limited to 'server/sonar-web/src/main/coffee')
-rw-r--r--server/sonar-web/src/main/coffee/issues/filters-view.coffee13
1 files changed, 11 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/filters-view.coffee b/server/sonar-web/src/main/coffee/issues/filters-view.coffee
index 43a8b0b7d88..422d20f3a7c 100644
--- a/server/sonar-web/src/main/coffee/issues/filters-view.coffee
+++ b/server/sonar-web/src/main/coffee/issues/filters-view.coffee
@@ -67,14 +67,23 @@ define [
filter.fetch().done => @options.app.controller.applyFilter filter
- saveAs: ->
+ getSaveQuery: ->
query = @options.app.controller.getQuery '&'
+ facets = @options.app.state.get('facets').join ','
+ if facets.length > 0
+ facetsQuery = "facets=#{encodeURIComponent(facets)}"
+ query = [query, facetsQuery].join('&')
+ query
+
+
+ saveAs: ->
+ query = @getSaveQuery()
url = "#{baseUrl}/issues/save_as_form?#{query}"
openModalWindow url, {}
save: ->
- query = @options.app.controller.getQuery '&'
+ query = @getSaveQuery()
url = "#{baseUrl}/issues/save/#{@options.app.state.get('filter').id}?#{query}"
$.post(url).done =>
@options.app.state.set changed: false