forked from 0x2620/oxjs
url controller updates, list bugfixes
This commit is contained in:
parent
ef9040ba24
commit
3965eed153
12 changed files with 98 additions and 48 deletions
|
|
@ -134,6 +134,7 @@ Ox.IconItem = function(options, self) {
|
|||
);
|
||||
|
||||
function formatText(text, maxLines, maxLength) {
|
||||
text = Ox.isArray(text) ? text.join(', ') : text;
|
||||
var lines = Ox.wordwrap(text, maxLength, '<br/>', true, false).split('<br/>');
|
||||
return Ox.map(lines, function(line, i) {
|
||||
if (i < maxLines - 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue