From ce89530aa0db752e169adb914938d7f5f9f0ed5a Mon Sep 17 00:00:00 2001 From: zuber <marek@stepniowski.com> Date: Wed, 27 Jan 2010 01:04:33 +0100 Subject: [PATCH 1/1] Poprawienie funkcji elementType. --- platforma/static/js/xslt.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'; -- 2.20.1