small fix for js
This commit is contained in:
parent
9a3f5561a4
commit
6db923237b
|
@ -6,7 +6,7 @@
|
||||||
var on = $('.language-nav li.active').index();
|
var on = $('.language-nav li.active').index();
|
||||||
var le = $(this).parent('.add-btn-box').prev('.add-target-box').children('.start-line').length;
|
var le = $(this).parent('.add-btn-box').prev('.add-target-box').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-box').append(("<%= escape_javascript(add_attribute 'form_author', f, :journal_paper_authors) %>").replace(old_id, new_id));
|
$(this).parent().siblings('.add-target-box').append(("<%= escape_javascript(add_attribute 'form_author', (f rescue nil), :journal_paper_authors) %>").replace(old_id, new_id));
|
||||||
$(this).parent('.add-btn-box').prev('.add-target-box').children('.start-line').eq(le).children('.input-append').find('.tab-content').each(function() {
|
$(this).parent('.add-btn-box').prev('.add-target-box').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');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue