X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/75b7209eaa096a8d3bff42fa83eec838791b6f3a..fbe38cbbacc776e1533f9adc51f5621d5b8ea77f:/platforma/static/js/xslt.js diff --git a/platforma/static/js/xslt.js b/platforma/static/js/xslt.js index 71a68598..95cc5fc5 100644 --- a/platforma/static/js/xslt.js +++ b/platforma/static/js/xslt.js @@ -34,8 +34,9 @@ var MARGIN = { MARGIN['rdf:RDF'] = 3; MARGIN['rdf:Description'] = 2; +var blockTags = ['akap', 'akap_cd', 'akap_dialog', 'strofa', 'didaskalia', 'wers', 'wers_cd', 'wers_akap', 'wers_wciety', 'autor_utworu', 'nazwa_utworu', 'dzielo_nadrzedne', 'podpis']; function elementType(element) { - if ($.inArray(element.tagName, ['akap', 'akap_cd', 'akap_dialog', 'strofa', 'didaskalia', 'wers', 'wers_cd', 'wers_akap', 'wers_wciety', 'autor_utworu', 'nazwa_utworu', 'dzielo_nadrzedne', 'podpis'])) { + if (blockTags.indexOf(element.tagName) != -1) { return 'inline'; } else { return 'block';