Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricksptang committed Jun 23, 2024
1 parent a101179 commit f8208c2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions step-web/src/main/webapp/js/backbone/views/view_sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,17 @@ var SidebarView = Backbone.View.extend({
this.lexicon.addClass("active");
//load content
lastMorphCode = '';
var curMorphs = step.util.convertMorphOSHM2TOS( this.model.get("morph") );
var strong = this.model.get("strong");
var currentMorph = this.model.get("morph");
if ((strong.substring(0,1) === "H") && (typeof currentMorph === "string") && (currentMorph.substring(0,4) !== "TOS:"))
currentMorph = "TOS:" + currentMorph;
var curMorphs = step.util.convertMorphOSHM2TOS( currentMorph );
if (curMorphs != undefined)
lastMorphCode = curMorphs;
var morphCount = this.model.get("morphCount");
var ref = this.model.get("ref");
var version = this.model.get("version");
var allVersions = this.model.get("allVersions");
var strong = this.model.get("strong");
var variant = this.model.get("variant") || "";
variant = variant.split(";");
if (typeof allVersions !== "string") {
Expand All @@ -80,7 +83,7 @@ var SidebarView = Backbone.View.extend({
}
if ((typeof version === "undefined") &&
(typeof ref === "undefined") &&
(typeof morph === "undefined") &&
(typeof currentMorph === "undefined") &&
(strong === "H0001")) {
console.log("MODULE_GET_INFO undefined H0001");
return;
Expand Down

0 comments on commit f8208c2

Please sign in to comment.