fix starter
This commit is contained in:
@@ -20,17 +20,41 @@
|
||||
</span>
|
||||
</div>
|
||||
<div style="text-align: center;">
|
||||
<button class="btn btn-success" type="button" >
|
||||
<button class="btn btn-success" id="acc<?=$product['product_id']?>" type="button" onclick="startProcess('<?=$product['product_id']?>')" >
|
||||
Get Started
|
||||
</button>
|
||||
</div>
|
||||
<div id="selected_detail">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- /main content -->
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
function startProcess(link_id) {
|
||||
if(confirm("Please confirm activation of this feature ?")) {
|
||||
// do something
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
$('#selected_detail').html('Processing...');
|
||||
$('#acc'+link_id).prop('disabled', true);
|
||||
$.ajax({
|
||||
url: "/providers/startprpcess/"+link_id
|
||||
}).done(function (data) {
|
||||
//$('#selected_detail').html(data);
|
||||
$('#acc'+link_id).prop('disabled', false);
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// -->
|
||||
</script>
|
||||
|
||||
|
||||
<?= $this->endSection() ?>
|
||||
|
||||
Reference in New Issue
Block a user