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";