diff --git a/module/file/view/export.html.php b/module/file/view/export.html.php
index bd7e42a5a6..f3626de72b 100644
--- a/module/file/view/export.html.php
+++ b/module/file/view/export.html.php
@@ -24,13 +24,12 @@ function setDownloading()
function closeWindow()
{
- if($.cookie('downloading') == 1 || i >= 30)
+ if($.cookie('downloading') == 1)
{
parent.$.fn.colorbox.close();
$.cookie('downloading', null);
clearInterval(time);
}
- i ++;
}
function switchEncode(fileType)
{