$(function() {
    "use strict";

    // $('.colorpicker').colorpicker();

    // Date picker
    // $('.inline-datepicker').datepicker({
    //     todayHighlight: true
    // });
    //选择器里面设置日期
    $('.date-picker').datepicker({
        language: 'zh-CN',
        autoclose: true,
        todayHighlight: true
    })
    
    // var $demoMaskedInput = $('.demo-masked-input');
    // //Date
    // $demoMaskedInput.find('.date').inputmask('dd/mm/yyyy', { placeholder: '__/__/____' });
    // //Time
    // $demoMaskedInput.find('.time12').inputmask('hh:mm t', { placeholder: '__:__ _m', alias: 'time12', hourFormat: '12' });
    // $demoMaskedInput.find('.time24').inputmask('hh:mm', { placeholder: '__:__ _m', alias: 'time24', hourFormat: '24' });
    // //Date Time
    // $demoMaskedInput.find('.datetime').inputmask('d/m/y h:s', { placeholder: '__/__/____ __:__', alias: "datetime", hourFormat: '24' });
    // //Mobile Phone Number
    // $demoMaskedInput.find('.mobile-phone-number').inputmask('+99 (999) 999-99-99', { placeholder: '+__ (___) ___-__-__' });
    // //Phone Number
    // $demoMaskedInput.find('.phone-number').inputmask('+99 (999) 999-99-99', { placeholder: '+__ (___) ___-__-__' });
    // //Dollar Money
    // $demoMaskedInput.find('.money-dollar').inputmask('99,99 $', { placeholder: '__,__ $' });
    // //IP Address
    // $demoMaskedInput.find('.ip').inputmask('999.999.999.999', { placeholder: '___.___.___.___' });
    // //Credit Card
    // $demoMaskedInput.find('.credit-card').inputmask('9999 9999 9999 9999', { placeholder: '____ ____ ____ ____' });
    // //Email
    // $demoMaskedInput.find('.email').inputmask({ alias: "email" });
    // //Serial Key
    // $demoMaskedInput.find('.key').inputmask('****-****-****-****', { placeholder: '____-____-____-____' });
    //
    //
    // // Masked Inputs
    // $('#phone').mask('(999) 999-9999');
    // $('#phone-ex').mask('(999) 999-9999? x99999');
    // $('#tax-id').mask('99-9999999');
    // $('#ssn').mask('999-99-9999');
    // $('#product-key').mask('a*-999-a999');


    // Multiselect
    $('#multiselect1, #multiselect2, #single-selection, #multiselect5, #multiselect6').multiselect({
        maxHeight: 300
    });
    //Multi-select
    $('#optgroup').multiSelect({ selectableOptgroup: true });


    $('#multiselect3-all').multiselect({
        includeSelectAllOption: true,
    });

    $('#multiselect4-filter').multiselect({
        enableFiltering: true,
        enableCaseInsensitiveFiltering: true,
        maxHeight: 200
    });

    $('#multiselect-size').multiselect({
        buttonClass: 'btn btn-default btn-sm'
    });

    $('#multiselect-link').multiselect({
        buttonClass: 'btn btn-link'
    });

    $('#multiselect-color').multiselect({
        buttonClass: 'btn btn-primary'
    });

    $('#multiselect-color2').multiselect({
        nonSelectedText: '请选择',
        nSelectedText: 'selected',
        allSelectedText: 'All selected',
        numberDisplayed: 3,
        buttonClass: 'btn btn-success'
    });
});

$(function() {
    "use strict";
    
    // $('.dropify').dropify();

    // var drEvent = $('#dropify-event').dropify();
    // drEvent.on('dropify.beforeClear', function(event, element) {
    //     return confirm("Do you really want to delete \"" + element.file.name + "\" ?");
    // });
    //
    // drEvent.on('dropify.afterClear', function(event, element) {
    //     alert('File deleted');
    // });
    //
    // $('.dropify-fr').dropify({
    //     messages: {
    //         default: 'Glissez-déposez un fichier ici ou cliquez',
    //         replace: 'Glissez-déposez un fichier ou cliquez pour remplacer',
    //         remove: 'Supprimer',
    //         error: 'Désolé, le fichier trop volumineux'
    //     }
    // });
});
