]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5007 Fix restore of "tags" filter on page reload
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 3 Jun 2014 14:45:19 +0000 (16:45 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Tue, 3 Jun 2014 15:35:40 +0000 (17:35 +0200)
sonar-server/src/main/coffee/coding-rules/views/filters/tag-filter-view.coffee

index 606d2182fb71c3dcc9cf3329b654da738392f016..a6b33b8a05e9039de892fc30843d1bde91d747a9 100644 (file)
@@ -24,4 +24,14 @@ define [
               id: tag
               text: tag
           ))
+
+        if that.tagToRestore
+          that.restore(that.tagToRestore)
+          that.tagToRestore = null
         that.render()
+
+    restore: (value) ->
+      unless @choices.isEmpty()
+        super(value)
+      else
+        @tagToRestore = value