* Fix bug for createimage.
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
<div class="progress-bar progress-bar-success rate" role="progressbar" aria-valuenow="<?php echo $task->rate;?>" aria-valuemin="0" aria-valuemax="100" style="width: <?php echo $task->rate;?>%">
|
||||
</div>
|
||||
</div>
|
||||
<?php $link = helper::createLink('zanode', 'create');?>
|
||||
<h6 class='hide text-center success'><?php echo sprintf($lang->zanode->createImageSuccess, $link);?></h6>
|
||||
<?php helper::createLink('zanode', 'create');?>
|
||||
<h6 class='hide text-center success'><?php echo $lang->zanode->createImageSuccess . html::a(inLink('create'), $lang->zanode->createImageButton, "_parent");?></h6>
|
||||
<h6 class='hide text-center fail'><?php echo $lang->zanode->createImageFail;?></h6>
|
||||
<?php else:?>
|
||||
<form class="load-indicator main-form form-ajax" method='post' enctype='multipart/form-data' id='dataform'>
|
||||
@@ -59,6 +59,13 @@
|
||||
<script>
|
||||
var setProgress = self.setInterval("getTaskProgress()",500);
|
||||
|
||||
$(function()
|
||||
{
|
||||
var href = $('.success').find('a').attr('href');
|
||||
href = href.replace('?onlybody=yes', '');
|
||||
$('.success').find('a').attr('href', href);
|
||||
})
|
||||
|
||||
function getTaskProgress()
|
||||
{
|
||||
var url = createLink('zanode', 'ajaxGetTaskStatus', 'extranet=' + extranet + '&taskID=' + taskID + '&type=exportVm');
|
||||
|
||||
Reference in New Issue
Block a user