Skip to content
This repository has been archived by the owner on Apr 5, 2018. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Olde Hampsink committed May 15, 2014
2 parents 691e63d + 436208b commit d95289f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ Map fields (2)

Changelog
=================
###0.6.3###
- Better live import updates

###0.6.2###
- Fixed a bug where errors in import failed to render a history detail page

Expand Down
19 changes: 13 additions & 6 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,21 @@
{% if craft.request.getParam('task') %}

{% set javascript %}
setTimeout(function() {
var taskCheck = setInterval(function() {
if((Craft.cp.runningTaskInfo && Craft.cp.runningTaskInfo.id != {{ craft.request.getParam('task') }}) || Craft.cp.runningTaskInfo === null) {
clearInterval(taskCheck);
window.location.href = 'import';
$(function() {
setTimeout(function() {
if(!$('#taskicon').length) {
window.location.reload();
} else {
$('#taskicon').trigger('click');
var taskCheck = setInterval(function() {
if((Craft.cp.runningTaskInfo && Craft.cp.runningTaskInfo.id != {{ craft.request.getParam('task') }}) || Craft.cp.runningTaskInfo === null) {
clearInterval(taskCheck);
window.location.href = 'scpimport';
}
}, 500);
}
}, 500);
}, 500);
});
{% endset %}

{% includeJs javascript %}
Expand Down

0 comments on commit d95289f

Please sign in to comment.