<?xml version="1.0" encoding="UTF-8"?>
<root>
    <default>
        <includes>
            <!--
                Path to css and js files into plugins folder.
                If your files are not in plugins folder, use absolute paths.
            -->
            <css>
                <file>bootstrap-select/css/bootstrap-select.min.css</file>
            </css>
            <js>
                <file>bootstrap-select/js/bootstrap-select.min.js</file>
            </js>
        </includes>
        <js_code><![CDATA[
    $.fn.selectpicker.Constructor.BootstrapVersion = '%bootstrapversion%';
    $("%selector%").selectpicker();
    $("%selector%").on('changed.bs.select', function (e) {
        var formId = document.querySelector("%selector%").closest('form').getAttribute('id');
        var form   = forms[formId];
        if (typeof(form.fv) == 'object' && e.target.name in form.fv.elements) {
            form.fv.revalidateField(e.target.name);
        }
    });]]>
        </js_code>
    </default>
    <countries-flags-16>
        <includes>
            <!--
                Path to css and js files into plugins folder.
                If your files are not in plugins folder, use absolute paths.
            -->
            <css>
                <file>bootstrap-select/css/bootstrap-select.min.css</file>
                <file>countries/world-flags-sprite/stylesheets/flags16.min.css</file>
            </css>
            <js>
                <file>bootstrap-select/js/bootstrap-select.min.js</file>
            </js>
        </includes>
        <js_code><![CDATA[
    $.fn.selectpicker.Constructor.BootstrapVersion = '%bootstrapversion%';
    $('%selector%').selectpicker();]]>
        </js_code>
    </countries-flags-16>
    <countries-flags-32>
        <includes>
            <!--
                Path to css and js files into plugins folder.
                If your files are not in plugins folder, use absolute paths.
            -->
            <css>
                <file>bootstrap-select/css/bootstrap-select.min.css</file>
                <file>countries/world-flags-sprite/stylesheets/flags32.min.css</file>
            </css>
            <js>
                <file>bootstrap-select/js/bootstrap-select.min.js</file>
            </js>
        </includes>
        <js_code><![CDATA[
    $.fn.selectpicker.Constructor.BootstrapVersion = '%bootstrapversion%';
    $('%selector%').selectpicker();]]>
        </js_code>
    </countries-flags-32>
</root>
