diff --git a/step-web/src/main/webapp/js/step.util.js b/step-web/src/main/webapp/js/step.util.js index abc864348c..2ecf8e5903 100644 --- a/step-web/src/main/webapp/js/step.util.js +++ b/step-web/src/main/webapp/js/step.util.js @@ -4517,8 +4517,11 @@ step.util = { var curMorphs = $($(elmtsWithMorph[cc]).parent()[0]).attr('morph'); if ((typeof curMorphs !== "string") || (curMorphs.indexOf("TOS:") != 0)) continue; var cmArray = curMorphs.split(" "); + var strongArray = (cmArray.length > 1) ? $($(elmtsWithMorph[cc]).parent()[0]).attr('morph') : [ ]; var grammarToShow = ""; for (var dd = 0; dd < cmArray.length; dd ++ ) { + if ((dd > 0) && (dd < strongArray.length) && (typeof strongArray[dd] === "strong") && (strongArray[dd] !== "")) + if (step.util.suppressHighlight(strongArray[dd])) continue; if ((dd > 0) && (cmArray[dd].indexOf("TOS:") == -1)) cmArray[dd] = "TOS:" + cmArray[dd]; var morphinfo = cf.getTOSMorphologyInfo(cmArray[dd]);