diff --git a/ooiui/static/js/views/science/StreamDownloadFormView.js b/ooiui/static/js/views/science/StreamDownloadFormView.js index 0e12cabee..82de53858 100644 --- a/ooiui/static/js/views/science/StreamDownloadFormView.js +++ b/ooiui/static/js/views/science/StreamDownloadFormView.js @@ -213,6 +213,11 @@ var StreamDownloadFormView = Backbone.View.extend({ * Make a copy of the stream model and then set the start and end dates to * the form fields, then grab the URL and send the user to it. */ + var self = this; + this.$el.find('#dl-tab-content').prepend('

Waiting for request verification...

'); + $('#metadata').fadeTo(0,0.6); + $('#metadata').append('
'); + $("#wspinner").show(); var selection = this.$type_select.val(); var localModel = this.model.clone(); var startDate = moment.utc(this.$start_date.data('date')).toJSON(); @@ -275,6 +280,10 @@ var StreamDownloadFormView = Backbone.View.extend({ user_name: user_name, parameters: parameters, success: function(resp){ + $("#wspinner").hide(); + $("#temp-fade").remove(); + $('#metadata').fadeTo(0,1); + self.hide(); var timeCalculation = _.has(resp, "timeCalculation") ? resp.timeCalculation : null; var sizeCalculation = _.has(resp, "sizeCalculation") ? resp.sizeCalculation : null; ooi.trigger('DownloadModal:onSuccess', this.user_email, timeCalculation, sizeCalculation); @@ -283,8 +292,6 @@ var StreamDownloadFormView = Backbone.View.extend({ ooi.trigger('DownloadModalFail:onFail', msg); } }); - - this.hide(); }, failure: function() { console.log("this failure"); diff --git a/ooiui/static/json/uiPatchNotes.json b/ooiui/static/json/uiPatchNotes.json index 24bdf48d4..cd3905d2c 100644 --- a/ooiui/static/json/uiPatchNotes.json +++ b/ooiui/static/json/uiPatchNotes.json @@ -1,4 +1,11 @@ [ + { + "VersionNumber": "1.4.9.2", + "VersionDate": "2018-05-23", + "VersionDescription": [ + "Data Download: Adds waiting for response feedback spinner and disables controls. (13380)" + ] + }, { "VersionNumber": "1.4.9.1", "VersionDate": "2018-05-18",