Projekt

Obecné

Profil

« Předchozí | Další » 

Revize d70a8d04

Přidáno uživatelem Ondřej Anděl před téměř 4 roky(ů)

Bug #8992: Upravit problémy v záznamech

Zobrazit rozdíly:

application/view/js-scripts/convertors.js
59 59
    "11": "Cr",
60 60
    "12": "Fs",
61 61
    "13": "Z",
62
    "14": "Js",
62
    "14": "Jš",
63 63
    "15": "Pl",
64 64
};
65 65

  
......
208 208
    output += ((codeToVid.hasOwnProperty(tag[11])) ? ("<span title=\""+ codeToVid[tag[11]] +"\">" + tag[11] + "</span>") : ("<span>" + tag[11] + "</span>"));
209 209

  
210 210
    return output;
211
}
212

  
213
function normalizeDescription(text){
214
    console.log(text.toLowerCase());
215
    if(text.toLowerCase().trim().startsWith("\\n")){
216
        console.log("0");
217
        text = text.replace("\\N", "-");
218
        text = text.replace("\\n", "-");
219
    } else {
220
        console.log("1");
221
        text = text.replace("\\N", "; ");
222
        text = text.replace("\\n", "; ");
223
    }
224
    console.log(text);
225
    return text;
211 226
}

Také k dispozici: Unified diff