precompile fix

This commit is contained in:
Harry Bomrah 2015-03-12 18:26:20 +08:00
parent dd64b027db
commit f48f920a39
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
var on = $('.language-nav li.active').index(); var on = $('.language-nav li.active').index();
var le = $(this).parent('.add-btn').prev('.add-target').children('.start-line').length; var le = $(this).parent('.add-btn').prev('.add-target').children('.start-line').length;
$(this).prev().attr('value', parseInt(new_id) + 1); $(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).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'); $(this).children('.tab-pane').eq(on).addClass('in active').siblings().removeClass('in active');
}); });