Skip to content

Commit

Permalink
removed hard-coded path, replaced with baseUrl var
Browse files Browse the repository at this point in the history
  • Loading branch information
kchapple committed Feb 10, 2020
1 parent 7680a3f commit 9b66861
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/admin/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
"processing": true,
"serverSide": true,
"ajax" : {
"url": "/interface/modules/custom_modules/oe-patient-privacy/index.php?action=admin!patient_data",
"url": "<?php echo $this->baseUrl(); ?>/index.php?action=admin!patient_data",
"data": function(d) {
// Pass the provider_filter value as a request parameter for server-side filtering
d.provider_filter = $("#filter-by-provider").val();
Expand All @@ -331,7 +331,7 @@
var provider_table = $('#<?php echo $this->providerDataTable->getTableId(); ?>').DataTable({
"processing": true,
"serverSide": true,
"ajax" : "/interface/modules/custom_modules/oe-patient-privacy/index.php?action=admin!provider_data",
"ajax" : "<?php echo $this->baseUrl(); ?>/index.php?action=admin!provider_data",
"columns": <?php echo $this->providerDataTable->getColumnJson(); ?>
});

Expand All @@ -354,7 +354,7 @@
// when the provider-supervisor modal pops up, set the name of the provider
$.ajax({
method: "POST",
url: "/interface/modules/custom_modules/oe-patient-privacy/index.php?action=admin!fetch_provider",
url: "<?php echo $this->baseUrl(); ?>/index.php?action=admin!fetch_provider",
data: { provider_id: last_clicked_provider_id }
}).done(function (response) {
var obj = JSON.parse(response);
Expand All @@ -364,7 +364,7 @@
// perform an AJAX request to get the providers that have access to this patient
$.ajax({
method: "POST",
url: "/interface/modules/custom_modules/oe-patient-privacy/index.php?action=admin!fetch_supervisors_for_provider",
url: "<?php echo $this->baseUrl(); ?>/index.php?action=admin!fetch_supervisors_for_provider",
data: { provider_id: last_clicked_provider_id }
}).done(function (response) {

Expand Down

0 comments on commit 9b66861

Please sign in to comment.