function SendLinkHelper() { } SendLinkHelper.CreateLink = function () { return Configuration.WebRoot + "map.aspx" + MapHelper.BuildMapLinkQueryString() }; SendLinkHelper.ShowCopyLinkDialog = function () { $("#copy-link-form").show().modal({ appendTo: "form", overlayClose: true, opacity: 15, overlayCss: { backgroundColor: "#000" }, onClose: function () { $.modal.close(); $("#copy-link-form").hide() } }); $("#copy-link-form input").val(SendLinkHelper.CreateLink()).focus(); $("#copy-link-form input").select() };
SendLinkHelper.ShowEmailLinkDialog = function () { var a = Configuration.WebRoot + "sendLink.aspx?l=" + encodeURIComponent(SendLinkHelper.CreateLink()); window.open(a, "SendLink", "width=530,height=670,scrollbars=yes,location=yes,menubar=yes,toolbar=yes,resizable=yes,directories=yes,status=yes") };
