/** * BSHelper * Bootstrap Helper * @version v0.1.0.023 (2015/07/14 1157) */ /** * BSDialog * */ var BSDialog = { Create:function(id, title, url, is_big){ id = "dlg" + id; if ($("#" + id).length <= 0) this.Add(id, title, ((is_big == undefined)? false : is_big)); //-- $("#" + id).find(".modal-content").load(url); $("#" + id).modal('show'); $("#" + id).on('hide.bs.modal', function(){ $("body > div[id='" + id + "']").remove(); $("body > div[class~='modal-backdrop']").remove(); $("body").removeClass("modal-open"); }); }, Add:function(id, title, is_big){ if ($("body > div#" + id).length > 0) return; //-- var html = ""; html += "