diff options
author | Chia-liang Kao <clkao@clkao.org> | 2012-11-02 21:39:34 +0800 |
---|---|---|
committer | Chia-liang Kao <clkao@clkao.org> | 2012-11-02 21:39:40 +0800 |
commit | 4827cdbd963490e42a62271188e622f5bdb37878 (patch) | |
tree | 88134a080120997f9060068ea96fac2982d7264e /src/static | |
parent | af3513873f620cc6b36eb128e12a08ecf1530bcf (diff) | |
download | etherpad-lite-4827cdbd963490e42a62271188e622f5bdb37878.zip |
fix imported ol that were turned into ul
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/js/contentcollector.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index dd4fd1e5..645b7fce 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -516,7 +516,7 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class { var type; var rr = cls && /(?:^| )list-([a-z]+[12345678])\b/.exec(cls); - type = rr && rr[1] || "bullet" + String(Math.min(_MAX_LIST_LEVEL, (state.listNesting || 0) + 1)); + type = rr && rr[1] || (tname == "ul" ? "bullet" : "number") + String(Math.min(_MAX_LIST_LEVEL, (state.listNesting || 0) + 1)); oldListTypeOrNull = (_enterList(state, type) || 'none'); } else if ((tname == "div" || tname == "p") && cls && cls.match(/(?:^| )ace-line\b/)) |