From 576279741f83b76662ab31adb643010efb060789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cshraddha?= <“shraddha_s@techjoomla.com”> Date: Fri, 20 Jul 2018 17:49:21 +0530 Subject: [PATCH] Task #131083 chore: replace root url with builtin Joomla variable in Js --- src/media/scripts/activities.jQuery.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/media/scripts/activities.jQuery.js b/src/media/scripts/activities.jQuery.js index 4568ff9..6dbdb2d 100755 --- a/src/media/scripts/activities.jQuery.js +++ b/src/media/scripts/activities.jQuery.js @@ -35,7 +35,7 @@ let from_date = techjoomla.jQuery(ele).attr("tj-activitystream-from-date"); let limit = techjoomla.jQuery(ele).attr("tj-activitystream-limit"); let start = techjoomla.jQuery(ele).attr("start"); - let url = root_url+"index.php?option=com_activitystream&task=activities.getActivities"; + let url = Joomla.getOptions('system.paths').base +"/index.php?option=com_activitystream&task=activities.getActivities"; if (typeof type != 'undefined') { @@ -96,11 +96,11 @@ if (!activityData.template) { - templatePath = root_url+"media/"+client+"/themes/"+theme+"/templates/"+view+"/default.mustache"; + templatePath = Joomla.getOptions('system.paths').base+"/media/"+client+"/themes/"+theme+"/templates/"+view+"/default.mustache"; } else { - templatePath = root_url+"media/"+client+"/themes/"+theme+"/templates/"+view+"/"+activityData.template; + templatePath = Joomla.getOptions('system.paths').base + "/media/"+client+"/themes/"+theme+"/templates/"+view+"/"+activityData.template; } techjoomla.jQuery.ajax({