diff --git a/frontend/src/Metamaps/Views/ContextMenu.js b/frontend/src/Metamaps/Views/ContextMenu.js index 74fa1751..f1553706 100644 --- a/frontend/src/Metamaps/Views/ContextMenu.js +++ b/frontend/src/Metamaps/Views/ContextMenu.js @@ -98,7 +98,7 @@ const ContextMenu = { $.ajax({ type: 'GET', - url: '/topics/' + id + '/relative_numbers.json?network=' + topicsString, + url: `/topics/${id}/relative_numbers.json?network=${topicsString}`, success: successCallback, error: function() {} }) diff --git a/frontend/src/components/common/ContextMenu.js b/frontend/src/components/common/ContextMenu.js index 5ffc7755..e3649e5d 100644 --- a/frontend/src/components/common/ContextMenu.js +++ b/frontend/src/components/common/ContextMenu.js @@ -37,6 +37,8 @@ class ContextMenu extends Component { const { contextPos } = this.props let extraClasses = [] const position = {} + // TODO: make these dynamic values so that the ContextMenu can + // change height and still work properly const RIGHTCLICK_WIDTH = 300 const RIGHTCLICK_HEIGHT = 144 // this does vary somewhat, but we can use static const SUBMENUS_WIDTH = 256 @@ -79,8 +81,9 @@ class ContextMenu extends Component { hide = () => { const { contextHide } = this.props return