<script src="static/ace/js/bootbox.js"></script>
bootbox.dialog({
message: '<style>.datepicker{z-index: 99999 !important}</style>
<form class="form-horizontal" role="form" id="create_report_form">
<div class="form-group">
<div class="col-sm-9">
<textarea class="form-control" name="content" placeholder="请输入备注内容"></textarea>
</div>
</div>
</form>',
title: "是否完成当前任务 ",
buttons:
{
"success" :
{
"label" : "<i class='icon-ok'></i> 确定",
"className" : "btn-sm btn-success",
"callback": function() {
$.ajax({
type: "POST",
url: "<%=basePath%>warn/editWarn.do?warn_id="
+warn_id+"&warn_type="+warn_type,
data: encodeURI(""),
dataType:'json',
cache: false,
success: function(data){
$("#"+warn_name).jqGrid("delRowData",rowid);
var count = $("#"+warn_name+warn_type).html();
$("#"+warn_name+warn_type).html(count-1);
}
});
}
},
"cancel": {
"label" : "<i class='icon-info'></i> 取消",
"className" : "btn-sm btn-danger"
}
}
});