$.thinkbox.load(url, {
title: '编辑流程',
drag : true,
actions: ['close'],
unload: true,
tools: true,
width: 800,
buttons: {
ok: ['确定', 'blue',
function() {
var data = this.find('#form1').serialize();
data += '&type='+type+'&mid='+model+'&id='+id;
$.post('__CONTROLLER__/editAll',data,function(re){
if(re.status){
alert(re.info);
}else{
alert(re.info);
}
},'json');
this.hide();
}
],
cancle: ['关闭', null,
function() {
this.hide();
}
]
},
afterHide:function(){location.reload(true)}
});
title: '编辑流程',
drag : true,
actions: ['close'],
unload: true,
tools: true,
width: 800,
buttons: {
ok: ['确定', 'blue',
function() {
var data = this.find('#form1').serialize();
data += '&type='+type+'&mid='+model+'&id='+id;
$.post('__CONTROLLER__/editAll',data,function(re){
if(re.status){
alert(re.info);
}else{
alert(re.info);
}
},'json');
this.hide();
}
],
cancle: ['关闭', null,
function() {
this.hide();
}
]
},
afterHide:function(){location.reload(true)}
});