Bootbox确认不起作用 [英] Bootbox Confirm Not Working
本文介绍了Bootbox确认不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,任何boude都知道如何解决这个问题。我有这个代码在删除文件时显示bootbox.confirm,但它不起作用。
$('#fileupload')。fileupload ({
destroy:function(e,data){
var that = $(this).data('fileupload');
if(bootbox.confirm(删除此文件(s) )?)== true){
if(data.url){
$ .ajax(data)
.success(function(){
$(this)。 fadeOut(function(){
$(this).remove();
});
});
} else {
data.context.fadeOut( function(){
$(this).remove();
});
}
}
}
});
解决方案
('#fileupload')。fileupload({
destroy:function(e,data){
var that =
(本)。数据( 'fileupload');
if(bootbox.confirm(删除此文件?)== true){
if(data.url){
< blockquote> .ajax(data)
.success(function(){
Hello, any boude know how to fix this. I have this code to show bootbox.confirm when deleting a file, but it's not working.
$('#fileupload').fileupload({ destroy: function (e, data) { var that = $(this).data('fileupload'); if (bootbox.confirm("Delete this file(s) ?") == true ) { if (data.url) { $.ajax(data) .success(function () { $(this).fadeOut(function () { $(this).remove(); }); }); } else { data.context.fadeOut(function () { $(this).remove(); }); } } } });
解决方案
('#fileupload').fileupload({ destroy: function (e, data) { var that =
(this).data('fileupload'); if (bootbox.confirm("Delete this file(s) ?") == true ) { if (data.url) {
.ajax(data) .success(function () {
这篇关于Bootbox确认不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文