Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@

// read the data from JSON endpoints

$.getJSON( "/rest/finder_settings", function( response ) {
$.getJSON( drupalSettings.path.baseUrl + "/rest/finder_settings", function( response ) {
//alert(JSON.stringify(response));
$('#pagetitle').html(response.title.replace(/(?:\r\n|\r|\n)/g, '<br />'));
$('#pagesubtitle').html(response.subtitle.replace(/(?:\r\n|\r|\n)/g, '<br />'));
Expand All @@ -117,7 +117,7 @@
});


$.getJSON( "/rest/facettree", function( response ) {
$.getJSON( drupalSettings.path.baseUrl + "/rest/facettree", function( response ) {

// JSON responses are automatically parsed.

Expand Down Expand Up @@ -208,7 +208,7 @@


// load the services
$.getJSON( "/rest/servicelist", function( responseb ) {
$.getJSON( drupalSettings.path.baseUrl + "/rest/servicelist", function( responseb ) {
services = responseb;
//servicelist = responseb.data;

Expand Down Expand Up @@ -573,7 +573,7 @@ function validateEmail(Email) {
}
if (emailaddresses.length > 0) {
var csrf_token;
$.getJSON( "/rest/session/token", function( response ) {
$.getJSON( drupalSettings.path.baseUrl + "/rest/session/token", function( response ) {
csrf_token = response.data;
});

Expand All @@ -587,7 +587,7 @@ function validateEmail(Email) {
//alert(JSON.stringify(emaildata));

$.ajax({
url: '/rest/sendemail',
url: drupalSettings.path.baseUrl + '/rest/sendemail',
type: 'POST',
data: JSON.stringify(emaildata),
headers: {
Expand Down