var UIModals=function(){var a=function(a){$.fn.modalmanager.defaults.resize=!0,$.fn.modal.defaults.spinner=$.fn.modalmanager.defaults.spinner='<div class="loading-spinner" style="width: 200px; margin-left: -100px;"><div class="progress progress-striped active"><div class="progress-bar" style="width: 100%;"></div></div></div>';var d=$("#ajax-modal");$("body").modalmanager("loading"),d.load(a,"",function(){d.modal()}),d.on("click",".update",function(){d.modal("loading"),setTimeout(function(){d.modal("loading").find(".modal-body").prepend('<div class="alert alert-info fade in">Updated!<button type="button" class="close" data-dismiss="alert">&times;</button></div>')},1e3)})};return{init:function(d){a(d)}}}();