From 607a4f5acfd0f77f6e42094ef355c1eff1ad6ff0 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 7 Dec 2012 11:19:40 +0800 Subject: [PATCH] fixed fileview in english mode --- app/assets/javascripts/desktop/journal_pages.js.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/desktop/journal_pages.js.erb b/app/assets/javascripts/desktop/journal_pages.js.erb index d45d59859..e2ed7bd6e 100644 --- a/app/assets/javascripts/desktop/journal_pages.js.erb +++ b/app/assets/javascripts/desktop/journal_pages.js.erb @@ -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";