From 128008daa159aeb7e5f9e2669a8814bac9d7e931 Mon Sep 17 00:00:00 2001 From: Ruben Vereecken Date: Sun, 6 Jul 2014 21:48:31 +0200 Subject: [PATCH] Hid the progress bar on load failed --- app/views/kinds/CocoView.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/kinds/CocoView.coffee b/app/views/kinds/CocoView.coffee index 541d02657..21b432dd7 100644 --- a/app/views/kinds/CocoView.coffee +++ b/app/views/kinds/CocoView.coffee @@ -137,12 +137,14 @@ module.exports = class CocoView extends Backbone.View resourceIndex: r.rid, responseText: r.jqxhr?.responseText })).i18n() + @$el.find('.progress').hide() onRetryResource: (e) -> res = @supermodel.getResource($(e.target).data('resource-index')) # different views may respond to this call, and not all have the resource to reload return unless res and res.isFailed res.load() + @$el.find('.progress').show() $(e.target).closest('.loading-error-alert').remove() # Modals