how to reload page after uploading images
问题 I use gem 'jquery-fileupload-rails' and 'carrierwave_backgrounder' gem with sidekiq. How to add reload the page after download is complete? The problem is that the download is in the background and the page is reloaded immediately, not when the images loaded fileupload.js $(function () { $('#new_photo').fileupload({ acceptFileTypes: '/(\.|\/)(gif|jpe?g|png)$/i', dataType: 'html', add: function (e, data) { data.context = $('#loading').css({display:"block"}).appendTo('#photos'); data.submit();