common.js 821 字节
Newer Older
D
devil_gong 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
$(function()
{
    // 表单初始化
    if($('form.form-validation-plugins-recharge-modal').length > 0)
    {
        FromInit('form.form-validation-plugins-recharge-modal');
    }
    if($('form.form-validation-plugins-recharge-popup').length > 0)
    {
        FromInit('form.form-validation-plugins-recharge-popup');
    }

    // 混合列表选择
    $('.business-item ul li').on('click', function()
    {
        var value = '';
        if($(this).hasClass('selected'))
        {
            $(this).removeClass('selected');
        } else {
            value = $(this).data('value');
            $(this).addClass('selected').siblings('li').removeClass('selected');
        }
        $('form.form-validation-plugins-recharge-popup input[name='+$(this).parent().data('type')+'_id]').val(value).blur();
    });
});