usefzade
پنج شنبه 20 شهریور 1393, 22:19 عصر
123330
با چه کدی میتونم اون دکمه حذفی که آخر صفحه هست رو فعال کنم؟؟یعنی وقتی روش میزنه حذف کنه این پیام رو...؟؟:متفکر:
اینم کدیه ک برای نمایشش استفاده میکنم:
<script>
function ShowMessage(id, fromInbox) {
$.ajax({
type: "POST",
url: '@Url.Action("ReportShow", "Message")',
data: { Id: id, FromInbox: fromInbox },
success: function (html) {
bootbox.dialog({
message: html,
title: "مشاهده پیام",
buttons: {
main: {
label: "انصراف",
className: "btn-primary",
callback: function () {
}
},
remove: {
label: "حذف",
className: "btn-primary",
callback: function () {
$('#dell').submit();
setTimeout(function () { location.reload() }, 500);
return false;
}
}
}
});
}
});
}
</script>
با چه کدی میتونم اون دکمه حذفی که آخر صفحه هست رو فعال کنم؟؟یعنی وقتی روش میزنه حذف کنه این پیام رو...؟؟:متفکر:
اینم کدیه ک برای نمایشش استفاده میکنم:
<script>
function ShowMessage(id, fromInbox) {
$.ajax({
type: "POST",
url: '@Url.Action("ReportShow", "Message")',
data: { Id: id, FromInbox: fromInbox },
success: function (html) {
bootbox.dialog({
message: html,
title: "مشاهده پیام",
buttons: {
main: {
label: "انصراف",
className: "btn-primary",
callback: function () {
}
},
remove: {
label: "حذف",
className: "btn-primary",
callback: function () {
$('#dell').submit();
setTimeout(function () { location.reload() }, 500);
return false;
}
}
}
});
}
});
}
</script>