File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/main/resources/static/js Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -198,11 +198,16 @@ require(['jquery'],
198
198
type : 'HEAD' ,
199
199
url : $ ( '#download' ) . attr ( 'href' ) ,
200
200
dataType : "json" ,
201
- success : function ( data ) {
201
+ success : function ( ) {
202
+ // Hide generating, show link
202
203
$ ( "#generating" ) . addClass ( "hide" ) ;
203
204
$ ( "#generated" ) . removeClass ( "hide" ) ;
204
205
} ,
205
206
error : function ( ) {
207
+ // Show generating, hide link
208
+ $ ( "#generated" ) . addClass ( "hide" ) ;
209
+ $ ( "#generating" ) . removeClass ( "hide" ) ;
210
+
206
211
// Retry in 5 seconds if still not generated
207
212
setTimeout ( function ( ) {
208
213
getDownloadLink ( ) ;
@@ -211,9 +216,5 @@ require(['jquery'],
211
216
} ) ;
212
217
}
213
218
214
- // If ajaxRequired exists on the page the RO bundle link is not generated
215
- // at time of page load
216
- if ( $ ( "#ajaxRequired" ) . length ) {
217
- getDownloadLink ( ) ;
218
- }
219
+ getDownloadLink ( ) ;
219
220
} ) ;
You can’t perform that action at this time.
0 commit comments