Skip to content

Commit

Permalink
* finalized Post import
Browse files Browse the repository at this point in the history
git-svn-id: http://plugins.svn.wordpress.org/canalblog-importer/branches/1.2@385126 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
oncletom committed May 15, 2011
1 parent d905fc3 commit 79b71d1
Show file tree
Hide file tree
Showing 17 changed files with 677 additions and 433 deletions.
16 changes: 13 additions & 3 deletions assets/javascripts/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,30 @@
};

CI.HandleResponse = function(response){
var $AjaxResponseHolder = $('#ajax-responses');
var $AjaxResponseHolder = $('#ajax-responses'),
progress = $('operation progress', response).text();

/*
* Adding messages to the UI
*/
$('object > response_data', response).each(function(){
$AjaxResponseHolder.prepend('<li>'+$(this).text()+'</li>');
isOK = true;
});
$('#import-progress-value').text($('operation progress', response).text());
$('#import-progress-value').text(progress);

/*
* No progress? Means error
*/
if ('' === progress)
{
$AjaxResponseHolder.prepend('<li>'+response+'</li>');
}

/*
* Continue batch
*/
if (1 !== parseInt($('operation finished', response).text(), 10))
else if (1 !== parseInt($('operation finished', response).text(), 10))
{
return CI.ExecuteRemoteOperation();
}
Expand Down
Binary file modified i18n/canalblog-importer-fr_FR.mo
Binary file not shown.
Loading

0 comments on commit 79b71d1

Please sign in to comment.