Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure event save works with different admin paths #307

Merged
merged 2 commits into from
Dec 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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