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 Original file line number Diff line number Diff line change @@ -247,14 +247,18 @@ <h2>
247
247
< script type ="text/javascript ">
248
248
//<![CDATA[
249
249
$ ( 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 ;
253
253
if ( popupId ) {
254
- $ ( elem ) . popover ( {
254
+ var popupElem = $ ( '#' + popupId ) ;
255
+ var popupTitleElem = $ ( '.hd' , popupElem ) ;
256
+ var popupBodyElem = $ ( '.bd' , popupElem ) ;
257
+ $ ( helpLinkElem ) . popover ( {
255
258
placement : 'bottom' ,
256
259
trigger : 'focus' ,
257
- content : $ ( '#' + popupId ) . html ( ) ,
260
+ title : popupTitleElem . html ( ) ,
261
+ content : popupBodyElem . html ( ) ,
258
262
html : true
259
263
} ) ;
260
264
}
You can’t perform that action at this time.
0 commit comments