diff --git a/kalite/updates/static/js/updates/bundle_modules/update_videos.js b/kalite/updates/static/js/updates/bundle_modules/update_videos.js index 43d91d0600..4960b6db7f 100644 --- a/kalite/updates/static/js/updates/bundle_modules/update_videos.js +++ b/kalite/updates/static/js/updates/bundle_modules/update_videos.js @@ -198,7 +198,7 @@ $(function() { // Do the request api.doRequest(window.Urls.start_video_download(), {youtube_ids: youtube_ids}) .success(function() { - base.updatesStart("videodownload", 5000, video_callbacks); + base.updatesStart("videodownload", 2000, video_callbacks); }) .fail(function(resp) { $("#download-videos").removeAttr("disabled"); diff --git a/kalite/updates/static/js/updates/updates/base.js b/kalite/updates/static/js/updates/updates/base.js index 4655249459..067395ace7 100644 --- a/kalite/updates/static/js/updates/updates/base.js +++ b/kalite/updates/static/js/updates/updates/base.js @@ -226,7 +226,9 @@ function updatesReset(process_name) { // Do callbacks if (process_callbacks[process_name] && "reset" in process_callbacks[process_name]) { - process_callbacks[process_name]["reset"](progress_log); + if (typeof progress_log != 'undefined') { + process_callbacks[process_name]["reset"](progress_log); + } } // Clean up UI