easyui messager showとconfirm
2703 ワード
//show
var show_options={
timeout:'0',// 4
title:' ',
msg:'<font size=\"2\" color=\"#666666\"><strong> ! :' +
'<font color=\"#0000ff\">'+parsedJson.code+'</font><br clear=left>' +
' \"<font color=\"#0000ff\"> </font>\" , ;' +
' \"<font color=\"#0000ff\"> </font>\" , 。</strong></font>' +
'<br><span style=\"padding-left:60px\"></span><input type=\"button\" value=\" \" onClick=\"onYesBtnHandler()\">' +
'<span style=\"padding-left:20px\"></span><input type=\"button\" value=\" \" onClick=\"onNoBtnHandler()\">',
showType:'fade',
style:{
right:'',
bottom:''
},
width:300,
height:140
}
$.messager.show(show_options);
$(".panel-tool-close").hide();
//
/**
$.messager.confirm(
' ',
'<font size=\"2\" color=\"#666666\"><strong> ! :' +
'<font color=\"#0000ff\">'+parsedJson.code+'</font><br clear=left>' +
' \"<font color=\"#0000ff\"> </font>\" , ;' +
' \"<font color=\"#0000ff\"> </font>\" , 。</strong></font>',
function(r){
registerReset();
if (r){
toNewUrl(" ");
}else{
}
});
*/
//
//$(".panel-tool-close").hide();
//===========
function onYesBtnHandler(){
$(".messager-body").window('close');
registerReset();
toNewUrl(" ");
}
//===========
function onNoBtnHandler(){
registerReset();
$(".messager-body").window('close');
}