Skip to content

Commit

Permalink
Fixed #1137 - Using <em> or other font attributes in section title cr…
Browse files Browse the repository at this point in the history
…ashes in javascript

 - Fixed this for page titles as well
  • Loading branch information
torinfo committed Jul 15, 2022
1 parent 153d880 commit cc0cc81
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions fix.php
@@ -0,0 +1 @@
<?php
1 change: 1 addition & 0 deletions fixCDATA.php
@@ -0,0 +1 @@
<?php
3 changes: 2 additions & 1 deletion modules/site/parent_templates/site/common/js/application.js
Expand Up @@ -522,10 +522,11 @@ function setup() {

// remove size & background color styles from links on nav bar
if ($('<p>' + name + '</p>').children().length > 0) {
name = $(name);
name = $('<p>' + name + '</p>');
name.css({ 'font-size': '', 'background-color': 'transparent' });
name.find('[style*="font-size"]').css('font-size', '');
name.find('[style*="background-color"]').css('background-color', 'transparent');
name = name.html();
}

if ($(this).attr('pageLink') != undefined && $(this).attr('pageLink') != '') {
Expand Down
2 changes: 1 addition & 1 deletion modules/site/player_html5/rloObject.htm
Expand Up @@ -36,7 +36,7 @@


<!--jquery-->
<script src="%TEMPLATEPATH%common/js/jquery-1.9.1.js%VERSION_PARAM%"></script>
<script src="%TEMPLATEPATH%common/js/jquery-1.9.1.min.js%VERSION_PARAM%"></script>

<!-- for lightboxes and lightbox gallery-->
<script type="text/javascript" src="%TEMPLATEPATH%common/featherlight/featherlight.min.js%VERSION_PARAM%"></script>
Expand Down

0 comments on commit cc0cc81

Please sign in to comment.