fix issues with leading and trailing whitespace and linebreaks in Ox.doc

This commit is contained in:
rlx 2011-10-06 01:56:04 +00:00
commit 745aac2609
2 changed files with 27 additions and 10 deletions

View file

@ -22,7 +22,7 @@ Ox.load('UI', {
},
getSection: function(item) {
var file = item.file.replace(Ox.PATH, '');
return item.section || file.split('/')[2];
return item.section || file.split('/')[2].split('.')[0];
},
path: Ox.PATH
}).bindEvent({