Skip to content

Commit

Permalink
Fix font issues for Version Reference columns
Browse files Browse the repository at this point in the history
  • Loading branch information
sabdelmalik committed Sep 30, 2023
1 parent 0cdd75e commit cf67c1a
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions step-web/src/main/webapp/js/backbone/views/view_display.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,23 @@ var DisplayView = Backbone.View.extend({
} else if (interlinearMode.indexOf("INTERLEAVED") != -1) {
step.util.ui._applyCssClassesRepeatByGroup(passageContent, ".verseGrouping", fonts, undefined, 0, '.singleVerse');
} else if (interlinearMode.indexOf("COLUMN") != -1) {
var versionRef= (options.indexOf('X') > -1);
if(versionRef)
{
// cater for inserted verse references
// instead of lang1 lang2 lang3 .. we have lang1 r lang2 ref lang3 ref
var newFonts = [fonts[0]];
if(fonts.length > 1){
for(var i=1; i < fonts.length; i++){
newFonts.push(undefined);
newFonts.push(fonts[i]);
}
}
step.util.ui._applyCssClassesRepeatByGroup(passageContent, "tr.row", fonts, undefined, 1);
var newFonts = [fonts[0]];
if(fonts.length > 1){
for(var i=1; i < fonts.length; i++){
newFonts.push(undefined);
newFonts.push(fonts[i]);
}
}
step.util.ui._applyCssClassesRepeatByGroup(passageContent, "tr.row", newFonts, undefined, 1);
}
else{
step.util.ui._applyCssClassesRepeatByGroup(passageContent, "tr.row", fonts, undefined, 1);
}
} else if(this.model.get("searchType") == 'PASSAGE') {
//normal mode, so all we need to do is check the language version, and if greek or hebrew then switch the font
if (fonts[0]) {
Expand Down

0 comments on commit cf67c1a

Please sign in to comment.