From 64bb32fc6ff20a96be55a010f1e56ee376b13a1f Mon Sep 17 00:00:00 2001 From: Jonathan Mifsud Date: Tue, 5 Dec 2017 00:19:19 +0100 Subject: [PATCH] Ensure event save works with different admin paths (#307) Removal of hardcoded symphony path, and using the correct context variable for the complete admin path. * ensure event save works with different admin paths 33ec784 * update other urls ee34f60 --- assets/members.events.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/members.events.js b/assets/members.events.js index 2a9a330..871d12e 100644 --- a/assets/members.events.js +++ b/assets/members.events.js @@ -10,7 +10,7 @@ jQuery(document).ready(function() { memberEventSave: function() { jQuery.ajax({ type: 'post', - url: Symphony.Context.get('root') + '/symphony/extension/members/events/', + url: Symphony.Context.get('symphony') + '/extension/members/events/', async: false, data: jQuery('form').serialize(), beforeSend: function() { @@ -21,8 +21,8 @@ jQuery(document).ready(function() { notifier.trigger('attach.notify', [ Symphony.Language.get('Event updated at {$time}. Create another? View all Events', { time: jQuery(data).find('timestamp').text(), - new_url: Symphony.Context.get('root') + '/symphony/blueprints/events/new/', - url: Symphony.Context.get('root') + '/symphony/blueprints/events/' + new_url: Symphony.Context.get('symphony') + '/blueprints/events/new/', + url: Symphony.Context.get('symphony') + '/blueprints/events/' }), 'success members' ]);