Fixed: logic reversed
This commit is contained in:
parent
1ec4ecdec0
commit
906e1a267c
@ -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 + ")");
|
||||
|
Loading…
Reference in New Issue
Block a user