Commit 018698df by yasir

perbaikan

1 parent 5045b4f7
...@@ -266,13 +266,15 @@ ...@@ -266,13 +266,15 @@
$('#btn_advice').click(function() { $('#btn_advice').click(function() {
var txId = $('#tx_id').html(); var txId = $('#tx_id').html();
var urinya = "${params.route}/advice/act/?id=" + mID; var urinya = "${request._host}${params.route}/advice/act/?id=" + mID;
urinya = urinya.replace("http:", "https:");
console.log(urinya); console.log(urinya);
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: urinya, url: urinya,
dataType: 'json', dataType: 'JSON',
headers: {
'Access-Control-Allow-Origin': '*'
},
success: function (data) { success: function (data) {
jsonnya = { jsonnya = {
"invoice_no": data.invoice_no, "invoice_no": data.invoice_no,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!