fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5cbbccd
)
Poprawienie funkcji elementType.
author
zuber
<marek@stepniowski.com>
Wed, 27 Jan 2010 00:04:33 +0000
(
01:04
+0100)
committer
zuber
<marek@stepniowski.com>
Wed, 27 Jan 2010 00:04:33 +0000
(
01:04
+0100)
platforma/static/js/xslt.js
patch
|
blob
|
history
diff --git
a/platforma/static/js/xslt.js
b/platforma/static/js/xslt.js
index
71a6859
..
95cc5fc
100644
(file)
--- 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;
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) {
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';
return 'inline';
} else {
return 'block';