From d6022c9bf853cadcc19e7b4f01afdef823af36eb Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Mon, 5 Oct 2020 03:01:18 +0000 Subject: [PATCH] fix a missing condition for modview/manage affecting json path for api calls, close #262 --- gulp/res/js/hover.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulp/res/js/hover.js b/gulp/res/js/hover.js index 493a7da0..65eb042f 100644 --- a/gulp/res/js/hover.js +++ b/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('/');