Kaynağa Gözat

Correcting formation of labels in crfSetup.js

Andrej Studen 1 yıl önce
ebeveyn
işleme
1d3358f903
1 değiştirilmiş dosya ile 5 ekleme ve 2 silme
  1. 5 2
      web/crf/crfSetup.js

+ 5 - 2
web/crf/crfSetup.js

@@ -143,8 +143,11 @@ function(entry){
    let pid=entry[this.getStudyIdLabel()];
    let loc=entry[this.getLocalIdLabel()];
    let label='';
-   if (pid) label+=pid;
-   if (loc) label+=' (Local: '+loc+')';
+   if (pid) {
+      label+=pid;
+      if (loc) label+=' ';
+   }
+   if (loc) label+='(Local: '+loc+')';
    if (label.length==0) label="NONE";
    return label;