From f48f920a39b6f0276912ea933e5f859d5f4b91c3 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Thu, 12 Mar 2015 18:26:20 +0800 Subject: [PATCH] precompile fix --- .../javascripts/personal_journal/journal_paper_file.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/personal_journal/journal_paper_file.js.erb b/app/assets/javascripts/personal_journal/journal_paper_file.js.erb index d6f31c6..411cd59 100644 --- a/app/assets/javascripts/personal_journal/journal_paper_file.js.erb +++ b/app/assets/javascripts/personal_journal/journal_paper_file.js.erb @@ -6,7 +6,7 @@ var on = $('.language-nav li.active').index(); var le = $(this).parent('.add-btn').prev('.add-target').children('.start-line').length; $(this).prev().attr('value', parseInt(new_id) + 1); - $(this).parent().siblings('.add-target').append(("<%= escape_javascript(add_attribute 'form_file', f, :journal_paper_files) %>").replace(old_id, new_id)); + $(this).parent().siblings('.add-target').append(("<%= escape_javascript(add_attribute 'form_file', f, :journal_paper_files) rescue "" %>").replace(old_id, new_id)); $(this).parent('.add-btn').prev('.add-target').children('.start-line').eq(le).children('.input-append').find('.tab-content').each(function() { $(this).children('.tab-pane').eq(on).addClass('in active').siblings().removeClass('in active'); });