toastr.success('A background process to restore the dump('+dumpInfo.filePath+') has started, whenever it finishes you can see the result on this page');
}
Ladda.stopAll();
swal({
title:"Are you sure?",
text:"All collections will be dropped, and restored !",
type:"warning",
showCancelButton:true,
confirmButtonColor:"#DD6B55",
confirmButtonText:"Yes, do it!",
closeOnConfirm:false
},function(){
varladdaButton=$('#btnTakeDump').ladda();
laddaButton.ladda('start');
vardumpInfo=table.row(this).data();
dumpInfo.status=DUMP_STATUS.IN_PROGRESS;
Meteor.call('updateDump',dumpInfo);// this is a simple update to notify user on UI
toastr.success('A background process to restore the dump('+dumpInfo.filePath+') has started, whenever it finishes you can see the result on this page');