fixed fileview in english mode

This commit is contained in:
Harry Bomrah 2012-12-07 11:19:40 +08:00 committed by chris
parent 9dde79414d
commit 607a4f5acf
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
var file_list = li.find('.list_t_des');
$.each(paper.files,function(k,file){
var thistitle = file.title;
if(!thistitle)
thistitle = "";
thistitle = ( thistitle.length > 8 )? thistitle.substring(0,8)+'...' : thistitle;
if(!file.title){
thistitle = "Untitled File";