我有一个奇怪的问题,也许解决方案会很简单。
我的对话框正在显示,但没有给定的按钮。请帮我。
我有:
<div id="dialog">Are you sure you want to delete this user?</div>
<script type="text/javascript">
function openDialog(usrId){
$("#dialog").dialog({
buttons: {
'Delete': function(){
window.location = '/user/index/remove-user/usrId/'+usrId
},
'Cancel': function(){
$(this).dialog('close')
}
}
}).dialog("open");
return false;
}
</script>