diff --git a/2019/07/bsdialog-v0.1.0.024.js b/2019/07/bsdialog-v0.1.0.024.js index 7064ec2..c00ed40 100644 --- a/2019/07/bsdialog-v0.1.0.024.js +++ b/2019/07/bsdialog-v0.1.0.024.js @@ -6,7 +6,7 @@ var BSDialog = { Create: function(id, title, url, is_big, update_body) { var a = this; var isBig = ((typeof(is_big) == "undefined") ? false : (is_big == true) ? true : false); - var updateBody = ((typeof(update_body) == "undefined") ? true : (update_body == true) ? true : false); + var updateBody = ((typeof(update_body) == "undefined") ? false : (update_body == true) ? true : false); if (!a.hasDialog(id)) { var html = a.generateModalHtml(id, title, null, isBig); @@ -23,9 +23,9 @@ var BSDialog = { { if (updateBody) { - $("#dlg" + id).find(".modal-content").html(result); - } else { a.updateContentBody(id, result); + } else { + $("#dlg" + id).find(".modal-content").html(result); } } else { a.updateContentBody(id, xhr.statusText + " (" + xhr.status + ")");