Skip to content

Commit 434cbc1

Browse files
author
Dylan McCall
committed
Position popovers within the "deed" container
This causes a popover near the top (such as the Disclaimer popover), to be positioned downwards instead of upwards of its link.
1 parent 4b37a73 commit 434cbc1

File tree

1 file changed

+2
-1
lines changed
  • python_env/src/cc.engine/cc/engine/templates/macros_templates

1 file changed

+2
-1
lines changed

python_env/src/cc.engine/cc/engine/templates/macros_templates/deed.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ <h2>
248248
<script type="text/javascript">
249249
//<![CDATA[
250250
$(document).ready(function() {
251-
$('.helpLink').each(function(index, helpLinkElem) {
251+
$('#deed .helpLink').each(function(index, helpLinkElem) {
252252
var helpId = $(helpLinkElem).attr('id');
253253
var popupId = helpId ? 'help_' + helpId : undefined;
254254
if (popupId) {
@@ -257,6 +257,7 @@ <h2>
257257
var popupBodyHtml = $('.bd', popupElem).html();
258258
$(helpLinkElem).popover({
259259
placement: 'auto top',
260+
viewport: '#deed',
260261
trigger: 'focus',
261262
title: popupTitleHtml ? popupTitleHtml : undefined,
262263
content: popupBodyHtml ? popupBodyHtml : undefined,

0 commit comments

Comments
 (0)