Skip to content

Commit 5ddd776

Browse files
Added modal-flex class to dialogs on checkout confirm page
1 parent 895bc35 commit 5ddd776

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

src/Presentation/SmartStore.Web/Themes/Alpha/Content/checkout.less

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -240,22 +240,8 @@
240240

241241
/* Terms of service
242242
================================================ */
243-
244-
#terms-of-service-modal {
245-
width: 650px;
246-
}
247-
#terms-of-service-modal .modal-body {
248-
min-height: 300px;
249-
overflow: hidden;
250-
}
251-
#iframe-terms-of-service {
252-
min-height: 400px;
253-
width: 100%;
254-
}
255-
256243
.terms-of-service.alert {
257244
padding-bottom: 4px !important;
258-
259245
a.read {
260246
font-weight: bold;
261247
&:hover {

src/Presentation/SmartStore.Web/Views/Checkout/Confirm.cshtml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
$(document).ready(function () {
3838
$("#terms-of-service-trigger").click(function (event) {
3939
event.preventDefault();
40-
$("#terms-of-service-modal .modal-body").html('<iframe id="iframe-terms-of-service" src="@Url.RouteUrl("TopicPopup", new { SystemName = "conditionsofuse" })" width="800" scrolling="yes" style="min-height:400px" frameBorder="0" />');
40+
$("#terms-of-service-modal .modal-body").html('<iframe id="iframe-terms-of-service" src="@Url.RouteUrl("TopicPopup", new { SystemName = "conditionsofuse" })" frameBorder="0" class="modal-flex-fill-area" />');
4141
});
4242
$("#disclaimer-trigger").click(function (event) {
4343
event.preventDefault();
44-
$("#terms-of-service-modal .modal-body").html('<iframe id="iframe-terms-of-service" src="@Url.RouteUrl("TopicPopup", new { SystemName = "disclaimer" })" width="800" scrolling="yes" style="min-height:400px" frameBorder="0" />');
44+
$("#terms-of-service-modal .modal-body").html('<iframe id="iframe-terms-of-service" src="@Url.RouteUrl("TopicPopup", new { SystemName = "disclaimer" })" frameBorder="0" class="modal-flex-fill-area" />');
4545
});
4646
});
4747
</script>
@@ -51,8 +51,8 @@
5151
</label>
5252

5353
<!-- Terms of service -->
54-
<div id="terms-of-service-modal" class="modal hide fade" tabindex="-1" style="width: 650px">
55-
<div class="modal-body" style="min-height: 300px;overflow:hidden"></div>
54+
<div id="terms-of-service-modal" class="modal modal-flex hide fade" tabindex="-1" style="width: 650px">
55+
<div class="modal-body"></div>
5656
<div class="modal-footer">
5757
<button class="btn" data-dismiss="modal">@T("Common.Confirm")</button>
5858
</div>

0 commit comments

Comments
 (0)