File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 101
101
102
102
// read the data from JSON endpoints
103
103
104
- $ . getJSON ( "/ rest/finder_settings", function ( response ) {
104
+ $ . getJSON ( drupalSettings . path . baseUrl + " rest/finder_settings", function ( response ) {
105
105
//alert(JSON.stringify(response));
106
106
$ ( '#pagetitle' ) . html ( response . title . replace ( / (?: \r \n | \r | \n ) / g, '<br />' ) ) ;
107
107
$ ( '#pagesubtitle' ) . html ( response . subtitle . replace ( / (?: \r \n | \r | \n ) / g, '<br />' ) ) ;
119
119
} ) ;
120
120
121
121
122
- $ . getJSON ( "/ rest/facettree", function ( response ) {
122
+ $ . getJSON ( drupalSettings . path . baseUrl + " rest/facettree", function ( response ) {
123
123
124
124
// JSON responses are automatically parsed.
125
125
210
210
211
211
212
212
// load the services
213
- $ . getJSON ( "/ rest/servicelist", function ( responseb ) {
213
+ $ . getJSON ( drupalSettings . path . baseUrl + " rest/servicelist", function ( responseb ) {
214
214
services = responseb ;
215
215
//servicelist = responseb.data;
216
216
@@ -575,7 +575,7 @@ function validateEmail(Email) {
575
575
}
576
576
if ( emailaddresses . length > 0 ) {
577
577
var csrf_token ;
578
- $ . getJSON ( "/ rest/session/token", function ( response ) {
578
+ $ . getJSON ( drupalSettings . path . baseUrl + " rest/session/token", function ( response ) {
579
579
csrf_token = response . data ;
580
580
} ) ;
581
581
You can’t perform that action at this time.
0 commit comments