apache_conf 确认js bootstrap confirmation.html
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 确认js bootstrap confirmation.html相关的知识,希望对你有一定的参考价值。
<span title="Delete" onclick="stopPropagation();">
<i class="fa fa-trash" id="{$T.obj.ChapterId}" data-toggle="confirmation" data-copy-attributes="id"
data-original-title="Are you sure you want to delete this chapter?"
data-placement="left" data-on-confirm="btnDeleteChapter_Clicked" style="cursor:pointer;"></i>
</span>
<script type="javascript">
function initConfirm() {
//// http://bootstrap-confirmation.js.org/
if ($('[data-toggle="confirmation"]').length > 0) {
$('[data-toggle="confirmation"]').confirmation({
singleton: 'true',
popout: 'true',
btnCancelIcon: '',
btnOkIcon: ''
});
}
}
function btnDeleteChapter_Clicked() {
var chapterId = window.event.target.id;
var url = "/template/DeleteChapter";
showMessage("Chapter deleted successfully!", 'success');
removeDom($('#rowChapter' + chapterId));
var data = { "chapterId": chapterId };
ajax(url, function (d) {
if (d === true) {
} else {
showMessage("Error in deleting chapter", 'error');
}
}, data);
return false;
}
</script>
以上是关于apache_conf 确认js bootstrap confirmation.html的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf Capistrano部署确认
apache_conf 确认对话框
apache_conf 确认结束
apache_conf 确认框
apache_conf 提交表格确认
apache_conf 点击确认(jquery)