fixed fileview in english mode

This commit is contained in:
Harry Bomrah 2012-12-07 11:19:40 +08:00
parent 08b99011d0
commit ad8273d638
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'); var file_list = li.find('.list_t_des');
$.each(paper.files,function(k,file){ $.each(paper.files,function(k,file){
var thistitle = file.title; var thistitle = file.title;
if(!thistitle)
thistitle = "";
thistitle = ( thistitle.length > 8 )? thistitle.substring(0,8)+'...' : thistitle; thistitle = ( thistitle.length > 8 )? thistitle.substring(0,8)+'...' : thistitle;
if(!file.title){ if(!file.title){
thistitle = "Untitled File"; thistitle = "Untitled File";