Inloggningen är stängd.function closeImageMapWebControlModal() { var $container = $("div.modalDialog.modalDialogBase:visible"); if ($container.length > 0) { var updatepanel = $container.data("updatepanel"); if (updatepanel) { __doPostBack(updatepanel, ''); } } $("div.modalDialog").hide(300); $("div.modalBackground").remove(); return false; } function showImageMapWebControlModalAddImageMap(suffix) { $("#imageMapIframe" + suffix).hide(); $("#loader" + suffix).show(); if ($("div.DefinitionContainer a").hasClass("disabled")) { return false; } var totalHeight = $(document).height(); var html = "
"; $("body").append(html); $("div.modalDialog.modalBackground").height(totalHeight).show(300); $("#modalDialogBase" + suffix).show(300); var url = $(".AddImageMapUrl" + suffix).val(); var $modalDialogBase = $("#modalDialogBase" + suffix); var showonlysigned = $modalDialogBase.data("showonlysigned"); if (showonlysigned) { url += "&showOnlySigned=" + showonlysigned; } $modalDialogBase.find("iframe").attr('src', url); } function showImageMapWebControlModal(suffix, imageMapId) { $("#imageMapIframe" + suffix).hide(); $("#loader" + suffix).show(); if ($("div.DefinitionContainer a").hasClass("disabled")) { return false; } var totalHeight = $(document).height(); var html = "
"; $("body").append(html); $("div.modalDialog.modalBackground").height(totalHeight).show(300); $("#modalDialogBase" + suffix).show(300); var url = $(".ShowImageMapUrl" + suffix).val(); if (imageMapId) { url += "&selectedImageMap=" + imageMapId; } var $modalDialogBase = $("#modalDialogBase" + suffix); var showonlysigned = $modalDialogBase.data("showonlysigned"); if (showonlysigned) { url += "&showOnlySigned=" + showonlysigned; } $modalDialogBase.find("iframe").attr('src', url); setTimeout(function () { var $container = $("div.modalDialog.modalDialogBase:visible"); var suffix = $container.data("suffix"); var parentresizefunc = $container.data("parentresizefunc"); if (parentresizefunc === "PositionBottomOfModalSummary" && typeof PositionBottomOfModalSummary === "function") { PositionBottomOfModalSummary($("#modalDialogBase" + suffix)); } else if (parentresizefunc === "PositionBottomOfModalRegResponse" && typeof PositionBottomOfModalRegResponse === "function") { PositionBottomOfModalRegResponse($("#modalDialogBase" + suffix)); } }, 400); } function imageMapWebControliFrameLoaded(suffix) { $("#loader" + suffix).hide(); $("#imageMapIframe" + suffix).show(); } function resizeImageMapWebControlIframe(contentHeight) { var $container = $("div.modalDialog.modalDialogBase:visible"); if ($container.length > 0) { var suffix = $container.data("suffix"); var parentresizefunc = $container.data("parentresizefunc"); var $iframe = $container.find("iframe"); if (!contentHeight && $iframe.length > 0) { contentHeight = $iframe[0].scrollHeight + 34; } $iframe.height(contentHeight); if (parentresizefunc === "PositionBottomOfModalSummary" && typeof PositionBottomOfModalSummary === "function") { PositionBottomOfModalSummary($("#modalDialogBase" + suffix)); } else if (parentresizefunc === "PositionBottomOfModalRegResponse" && typeof PositionBottomOfModalRegResponse === "function") { PositionBottomOfModalRegResponse($("#modalDialogBase" + suffix)); } else if (parentresizefunc === "PositionBottomOfModalRemittance" && typeof PositionBottomOfModalRemittance === "function") { PositionBottomOfModalRemittance($("#modalDialogBase" + suffix)); } else if (parentresizefunc === "ResizeRequestContainer" && typeof ResizeRequestContainer === "function") { ResizeRequestContainer($("#modalDialogBase" + suffix)); } } }