fix a missing condition for modview/manage affecting json path for api calls, close #262

merge-requests/208/head
Thomas Lynch 4 years ago
parent 5274abb8ba
commit d6022c9bf8
  1. 2
      gulp/res/js/hover.js

@ -65,7 +65,7 @@ window.addEventListener('DOMContentLoaded', (event) => {
hovering = e.type === 'mouseover';
let jsonParts = this.pathname.replace(/\.html$/, '.json').split('/');
let jsonPath;
if (isModView && jsonParts.length === 5) {
if ((isManage || isModView) && jsonParts.length === 5) {
jsonParts.splice(2,1); //remove manage from json url
}
jsonPath = jsonParts.join('/');

Loading…
Cancel
Save