Skip to content

Commit

Permalink
Merge pull request #4480 from 66eli77/0.15.x
Browse files Browse the repository at this point in the history
fix for #4430
  • Loading branch information
rtibbles committed Sep 24, 2015
2 parents fd6076a + 8c9d2f0 commit a3bf8db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 3 additions & 1 deletion kalite/updates/static/js/updates/updates/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3bf8db

Please sign in to comment.