Wait for file upload..
Send
If you are publishing for the first time in our journals, we recommend you to know five simple steps for publication.
');
}
form.find('[name="fields['+key+']"]').addClass('error');
}
}
console.log(res);
}
})
return false;
})
$('input[name="fields[COUNTRY]"]').autocomplete({
serviceUrl:'/bitrix/components/brr/form.new/get_country.php',
minChars:2,
delimiter: /(,|;)\s*/, // regex or character
maxHeight:400,
width:176,
zIndex: 9999,
deferRequestBy: 0, //miliseconds
params: { country:'Y' }, //aditional parameters
noCache: false,
onSelect: function(value, data)
{
}
});
$('input[name="fields[AUTHORS_TWO]"]').change(function(){
if(this.checked){
$('#show_AUTHORS_TWO').show();
}
else{
$('#show_AUTHORS_TWO').hide();
}
});
$('input[name="fields[AUTHORS]"]').change(function(){
if(this.checked){
$('#show_AUTHORS').show();
}
else{
$('#show_AUTHORS').hide();
}
});
$(".morderbl").on("click", "a.addmoreautor", function (e) {
var place = $(this).closest(".autors");
var co=place.find('.one').length;
if(co==5){
alert('Доступно 5 соавторов!');
return false;
}
$(this).hide();
$(place).append('
');
e.preventDefault();
});
$(".morderbl").on("click", "a.addmoreautor_one", function (e) {
var place = $(this).closest(".autors");
var co=place.find('.one').length;
if(co==5){
alert('Доступно 5 соавторов!');
return false;
}
$(this).hide();
$(place).append('
');
e.preventDefault();
});
$(".morderbl").on("keyup","input.tr_name",function(e){
$(this).parents('.one').find('input.tr_code').val(BX.translit($(this).val(),{'change_case':false,'replace_space':' ','replace_other':false}));
var index=$('.autors > div.one').index($(this).parents('.one'));
$(".sert > div.one").eq(index).find('span.text').text($(this).val());
});
$(".morderbl").on("click", "a.del", function (e) {
var index=$('.autors > div.one').index($(this).parent('.one'));
$(this).parent('.one').remove(); //Удаление блока
var place = $(".morderbl .autors");
place.find(".one:last a.plus").show();
e.preventDefault();
});
//Изменение текста "Количество дополнительных печатных экземпляров"
var message = {"2":"Number of printed copies (1 copy - 30 euro)","3":"Number of printed copies (1 copy - 15 euro)","4":"Number of printed copies (3 copies - 30 euro) "};
changeText();
function changeText(){
var val = $('[name="fields[TYPE_ISSUE]"]').val();
if(val>0){
$('#con-DOP .lname').text(message[val]);
}
}
$('[name="fields[TYPE_ISSUE]"]').change(function(){
changeText();
});
$('[name="fields[PRINT]"]').change(function(){
if(this.value == 'Y'){
//$('#con-COUNTRY').show();
$('#con-ADDRESS').show();
$('#con-FIO_BANDEROL').show();
$('#con-DOP').show();
}
else{
//$('#con-COUNTRY').hide();
$('#con-ADDRESS').hide();
$('#con-FIO_BANDEROL').hide();
$('#con-DOP').hide();
}
});
})