diff --git a/2016/08/bshelper-modal-v0.1.0.023.js b/2016/08/bshelper-modal-v0.1.0.023.js new file mode 100644 index 0000000..e863980 --- /dev/null +++ b/2016/08/bshelper-modal-v0.1.0.023.js @@ -0,0 +1,116 @@ +/** + * 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 += "