is).parent().before($tpl);
        });

        $('.wrap').on('click', '.admin-lang-delete-btn', function () {
            $(this).parents('.admin-lang-row').remove();
        });

        $('.wrap').on('change', '.allow_lang_list-lang-input', function () {
            var $parent = $(this).parents('.home-lang-row');
            $parent.find('.default-lang-check').val($(this).val());
        })

        $('.wrap').on('change', '.admin_allow_lang_list-lang-input', function () {
            var $parent = $(th