From 906e1a267c32e9b5b77bde9ff6293ea9cfdcc646 Mon Sep 17 00:00:00 2001 From: Ray Date: Sat, 6 Jul 2019 22:20:32 +0100 Subject: [PATCH] Fixed: logic reversed --- 2019/07/bsdialog-v0.1.0.024.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 + ")");