Skip to content

Commit

Permalink
Ensure event save works with different admin paths (#307)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jonmifsud authored and nitriques committed Dec 4, 2017
1 parent 4f0ff2a commit 64bb32f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/members.events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -21,8 +21,8 @@ jQuery(document).ready(function() {
notifier.trigger('attach.notify', [
Symphony.Language.get('Event updated at {$time}. <a href="{$new_url}" accesskey="c">Create another?</a> <a href="{$url}" accesskey="a">View all Events</a>', {
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'
]);
Expand Down

0 comments on commit 64bb32f

Please sign in to comment.