Skip to content

Commit 6646e7c

Browse files
author
Matt Campbell
committed
add multisite support
1 parent 55f68b7 commit 6646e7c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/app.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101

102102
// read the data from JSON endpoints
103103

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

121121

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

124124
// JSON responses are automatically parsed.
125125

@@ -210,7 +210,7 @@
210210

211211

212212
// load the services
213-
$.getJSON( "/rest/servicelist", function( responseb ) {
213+
$.getJSON( drupalSettings.path.baseUrl + "rest/servicelist", function( responseb ) {
214214
services = responseb;
215215
//servicelist = responseb.data;
216216

@@ -575,7 +575,7 @@ function validateEmail(Email) {
575575
}
576576
if (emailaddresses.length > 0) {
577577
var csrf_token;
578-
$.getJSON( "/rest/session/token", function( response ) {
578+
$.getJSON( drupalSettings.path.baseUrl + "rest/session/token", function( response ) {
579579
csrf_token = response.data;
580580
});
581581

0 commit comments

Comments
 (0)