var modal = $('body').append('
Have you checked FAQ<\/a>?If you haven’t found an answer, please write:<\/p>Your e-mail<\/label><\/div>Subject *<\/abbr><\/label><\/option>\nRegistration/log in<\/option>\nOnline lessons<\/option>\nPolarpedia<\/option>\nMonitoring system<\/option>\nArctic competitions<\/option>\nTeacher workshops & Training sessions<\/option>\nOther<\/option><\/select><\/div>Content<\/label>\n<\/textarea><\/div>By submitting my request, I certify that I am 18 years of age or over and express my consent to the processing of my e-mail address by American Systems sp. z o. o. I have read and agree to the Data Use Policy<\/a>.<\/label><\/div><\/div><\/div>Submit<\/button><\/div>Cancel<\/a><\/div><\/div><\/form><\/div><\/div><\/div><\/div><\/div>').find('.modal').last(); modal.modal('show'); $("#message_subject").select2({ placeholder: "Please choose", minimumInputLength: null, minimumResultsForSearch: Infinity }); modal.on('submit', function(e) { modal.modal('hide'); // modal.modal('hide').remove(); }) modal.on('hide.bs.modal', function(e) { modal.remove(); }); $('input[type="checkbox"], input[type="radio"]').iCheck({ checkboxClass: 'icheckbox_flat-blue', radioClass: 'iradio_flat-blue', increaseArea: '20%' });