Skip to content

Commit

Permalink
Merge pull request #876 from plone/fix-857
Browse files Browse the repository at this point in the history
Structure pattern: Fix URL for current path for popovers.
  • Loading branch information
thet committed Oct 5, 2018
2 parents 8d88192 + e1de27f commit c1de803
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ New features:

Bug fixes:

- Structure pattern: Fix URL for current path for popovers.
Refs: https://github.com/plone/mockup/issues/857
[thet]

- Structure pattern: Fix spacing for attribute-columns popover.
[tmassman]

Expand Down
3 changes: 2 additions & 1 deletion mockup/patterns/structure/js/views/generic-popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ define([
if (self.options.form.dataUrl) {
self.$('.popover-content').html(_t('Loading...'));
self.app.loading.show();
var url = self.app.getAjaxUrl(self.options.form.dataUrl);
$.ajax({
url: self.options.form.dataUrl,
url: url,
dataType: 'json',
type: 'POST',
cache: false,
Expand Down

0 comments on commit c1de803

Please sign in to comment.