You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

114 lines
2.3 KiB

document.write("<script language='javascript' src='/Content/sweetalert/dist/sweetalert.min.js'></script>");
function alertEx(message) {
swal(
message);
}
function alertTitle(title,message) {
swal(title, message);
}
function alertSuccess(message) {
swal( message, '',"success");
}
function alertSuccessCallBack(message, callbackfuntion) {
swal({
title: message,
text: '',
type: "success",
confirmButtonColor: "#DD6B55",
confirmButtonText: "确定",
closeOnConfirm: false
},
function () {
callbackfuntion();
});
}
function alertSuccessCallBack2(title1,message, callbackfuntion) {
swal({
title: title1,
text: message,
type: "success",
confirmButtonColor: "#DD6B55",
confirmButtonText: "确定",
closeOnConfirm: false
},
function () {
callbackfuntion();
});
}
function alertError( message) {
swal(message, '', "error");
}
function alertWarning(_title,message) {
swal({
title: _title,
text: message,
type: "warning",
showCancelButton: false,
confirmButtonColor: "#DD6B55",
confirmButtonText: "确定",
closeOnConfirm: false
} );
}
function alertWarningCallBack(message,dtovalue,callbackfuntion) {
swal({
title: message,
text: "",
type: "warning",
showCancelButton: false,
confirmButtonColor: "#DD6B55",
confirmButtonText: "确定",
closeOnConfirm: true
},
function () {
callbackfuntion(dtovalue);
});
}
function confirmEx(title, message, callbackfuntion) {
swal({
title: title,
text: message,
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "确定",
closeOnConfirm: true
},
function () {
callbackfuntion();
});
}
function alertAutoClose(message) {
swal({
title: message,
text: "2秒钟后自动关闭",
timer: 2000,
showConfirmButton: false
});
}
function alertAutoClose3(message) {
swal({
title: message,
text: "3秒钟后自动关闭",
timer: 3000,
showConfirmButton: false
});
}