hurriedly% 2018-08-08 06:44 采纳率: 100%
浏览 67

Bootbox.confirm javascript

Hello I just started learning the Web Development , it would be good if you can help me with this

How can I put bootbox confirm on this code. I tried it lot of times but it shows error like improper end of input.

$(".approveBtn").click(function (e) {
e.preventDefault();

if (checkRequired("#propertyForm, #uploadcon, #propertyForm2")) {
    var btn = $(this)
    var serial = $("#propertyForm").serialize();
    $.ajax({
        type: "POST",
        url: base_url + "admin_t/approve_dec",
        data: serial,
        beforeSend: function () {
            btn.prop('disabled', true)
            btn.html('<i class="fa fa-spinner"></i>')
        },
        success: function (data) {
            if (data.success == 1) {
                tct();
                upload_docu_by_type(data.prop_id, 'cert_title', 1);
                upload_docu_by_type(data.prop_id, 'tax_dec', 2);
                upload_docu_by_type(data.prop_id, 'rpt_receipt', 3);
                upload_docu_by_type(data.prop_id, 'other_doc', 4, true);
                $.toast({
                    heading: 'Success',
                    text: 'Property Successfully Saved',
                    icon: 'success',
                    loader: false,
                    stack: false,
                    position: 'top-center',
                    allowToastClose: false,
                    bgColor: 'green',
                    textColor: 'white',
                    hideAfter: 6000,
                    afterHidden: function () {
                        location.href = base_url + "/main/tax_dec/" + token
                    }
                });
            } else {
                toast_note(data.message)
            }
        },
        error: function (a, b, c) {
            toast_error(c)
        },
        complete: function () {
            // btn.prop('disabled', false);
            btn.html('Save Details')
        }
    });
}});

I already search the documentation. My problem is just the end of bootbox on where to put the }});

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 2020长安杯与连接网探
    • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
    • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
    • ¥16 mybatis的代理对象无法通过@Autowired装填
    • ¥15 可见光定位matlab仿真
    • ¥15 arduino 四自由度机械臂
    • ¥15 wordpress 产品图片 GIF 没法显示
    • ¥15 求三国群英传pl国战时间的修改方法
    • ¥15 matlab代码代写,需写出详细代码,代价私
    • ¥15 ROS系统搭建请教(跨境电商用途)