diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-02-04 13:18:53 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-02-04 13:18:53 +0100 |
commit | f67d665d9250b1e64c08132df2f5b0b6ec05c4a7 (patch) | |
tree | 5aea1c9214f9a4574e154efe0b57350dd13ec27a /server/sonar-web/src/main/coffee/issues | |
parent | e2d3a2b2591bb2f43f13a42328cbf23f6c935e84 (diff) | |
parent | 1165e53e494a06ff39eee1d4a716ef170caa2276 (diff) | |
download | sonarqube-f67d665d9250b1e64c08132df2f5b0b6ec05c4a7.tar.gz sonarqube-f67d665d9250b1e64c08132df2f5b0b6ec05c4a7.zip |
Merge pull request #68 from SonarSource/feature/ajax-errors
SONAR-5946 SONAR-6027 better handling of ajax errors
Diffstat (limited to 'server/sonar-web/src/main/coffee/issues')
4 files changed, 1 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/app-context.coffee b/server/sonar-web/src/main/coffee/issues/app-context.coffee index c1f688369b7..f12a2fa6d39 100644 --- a/server/sonar-web/src/main/coffee/issues/app-context.coffee +++ b/server/sonar-web/src/main/coffee/issues/app-context.coffee @@ -40,7 +40,6 @@ requirejs [ $ = jQuery App = new Marionette.Application - issuesAppProcess = window.process.addBackgroundProcess() App.getContextQuery = -> @@ -124,7 +123,6 @@ requirejs [ key.setScope 'list' @router = new Router app: @ Backbone.history.start() - window.process.finishBackgroundProcess issuesAppProcess l10nXHR = window.requestMessages() diff --git a/server/sonar-web/src/main/coffee/issues/app-new.coffee b/server/sonar-web/src/main/coffee/issues/app-new.coffee index 8c39a53651b..cff9066f46a 100644 --- a/server/sonar-web/src/main/coffee/issues/app-new.coffee +++ b/server/sonar-web/src/main/coffee/issues/app-new.coffee @@ -40,7 +40,6 @@ requirejs [ $ = jQuery App = new Marionette.Application - issuesAppProcess = window.process.addBackgroundProcess() App.addInitializer -> @state = new State() @@ -103,7 +102,6 @@ requirejs [ key.setScope 'list' @router = new Router app: @ Backbone.history.start() - window.process.finishBackgroundProcess issuesAppProcess l10nXHR = window.requestMessages() diff --git a/server/sonar-web/src/main/coffee/issues/controller.coffee b/server/sonar-web/src/main/coffee/issues/controller.coffee index 5a2f1f313e8..0100182024a 100644 --- a/server/sonar-web/src/main/coffee/issues/controller.coffee +++ b/server/sonar-web/src/main/coffee/issues/controller.coffee @@ -33,7 +33,6 @@ define [ _.extend data, @options.app.state.get 'query' _.extend data, @options.app.state.get 'contextQuery' if @options.app.state.get 'isContext' - fetchIssuesProcess = window.process.addBackgroundProcess() $.get "#{baseUrl}/api/issues/search", data .done (r) => issues = @options.app.list.parseIssues r @@ -51,11 +50,8 @@ define [ pageSize: r.ps total: r.total maxResultsReached: r.p * r.ps >= r.total - window.process.finishBackgroundProcess fetchIssuesProcess if firstPage && @isIssuePermalink() @showComponentViewer @options.app.list.first() - .fail -> - window.process.failBackgroundProcess fetchIssuesProcess isIssuePermalink: -> diff --git a/server/sonar-web/src/main/coffee/issues/workspace-list-item-view.coffee b/server/sonar-web/src/main/coffee/issues/workspace-list-item-view.coffee index 914cb29317f..25435c21f3b 100644 --- a/server/sonar-web/src/main/coffee/issues/workspace-list-item-view.coffee +++ b/server/sonar-web/src/main/coffee/issues/workspace-list-item-view.coffee @@ -33,7 +33,7 @@ define [ @options.app.state.set selectedIndex: @model.get('index') - resetIssue: (options, p) -> + resetIssue: (options) -> key = @model.get 'key' componentUuid = @model.get 'componentUuid' index = @model.get 'index' @@ -42,9 +42,6 @@ define [ @model.fetch(options) .done => @trigger 'reset' - window.process.finishBackgroundProcess p if p? - .fail -> - window.process.failBackgroundProcess p if p? openComponentViewer: -> |