Skip to content

Commit

Permalink
Merging with 1.2
Browse files Browse the repository at this point in the history
git-svn-id: http://plugins.svn.wordpress.org/canalblog-importer/trunk@385209 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information
oncletom committed May 15, 2011
2 parents 41c633b + b114594 commit 90aee2c
Show file tree
Hide file tree
Showing 19 changed files with 760 additions and 353 deletions.
20 changes: 15 additions & 5 deletions assets/javascripts/import.js
Expand Up @@ -23,25 +23,35 @@

CI.PrepareNextOperation = function(){
$('#ajax-results .worker-container').addClass('hidden');
$('.submit .button-primary.start-remote-operation').addClass('hidden');
$('.submit .button-primary.next-operation').removeClass('hidden');
$('.submit .start-remote-operation').addClass('hidden');
$('.submit .next-operation').removeClass('hidden');
};

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.

0 comments on commit 90aee2c

Please sign in to comment.