bootstrap 带有确定取消按钮的modal

  

        $("#checkBtn").click(function () {
                var grid = $('#ChecksGrid').data('kendoGrid');
                var row = grid.select();
                if (row.length == 1) {
                    var data = grid.dataItem(row);
                    $("#confirmModal-content").html("确定审核通过?");
                    $("#confirmModal").modal({ backdrop: 'static', keyboard: false })
                        .one('click', '#confirm', function (e) {
                            var url = "@Url.Action("OfficeCheck", "MissionCheckFileCheck", new { id = "__id__", fileLocation = "__fileLocation__" })";
                            window.location = url.replace("__id__", data.Id).replace("__fileLocation__", data.FileLocation).replace(/amp;/g, "");
                        });
                } else {
                    $("#modal-content").html("请选择未审的文书");
                    $("#noRowSelectModal").modal();
                }
            });

  

 

转载于:https://www.cnblogs.com/taoshengyujiu/p/5077658.html

你可能感兴趣的:(bootstrap 带有确定取消按钮的modal)