Skip to content

Commit 25c6a74

Browse files
author
Dylan McCall
committed
Separate help popup title and body
1 parent 6e3659f commit 25c6a74

File tree

1 file changed

+9
-5
lines changed
  • python_env/src/cc.engine/cc/engine/templates/macros_templates

1 file changed

+9
-5
lines changed

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

+9-5
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,18 @@ <h2>
247247
<script type="text/javascript">
248248
//<![CDATA[
249249
$(document).ready(function() {
250-
$('.helpLink').each(function(index, elem) {
251-
var elemId = $(elem).attr('id');
252-
var popupId = elemId ? 'help_' + elemId : undefined;
250+
$('.helpLink').each(function(index, helpLinkElem) {
251+
var helpId = $(helpLinkElem).attr('id');
252+
var popupId = helpId ? 'help_' + helpId : undefined;
253253
if (popupId) {
254-
$(elem).popover({
254+
var popupElem = $('#'+popupId);
255+
var popupTitleElem = $('.hd', popupElem);
256+
var popupBodyElem = $('.bd', popupElem);
257+
$(helpLinkElem).popover({
255258
placement: 'bottom',
256259
trigger: 'focus',
257-
content: $('#'+popupId).html(),
260+
title: popupTitleElem.html(),
261+
content: popupBodyElem.html(),
258262
html: true
259263
});
260264
}

0 commit comments

Comments
 (0)