Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9810

Clicking on "Select All" of code tag on print page results in a javascript error when using prosilver

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.8-RC1
    • 3.0.7-PL1
    • Viewing posts
    • None
    • PHP 5.2.12, MySQL(i) 5.0.67-community-log, Firefox 3.6

      If you open the print page (print view) of a topic, the code bbcode still shows the "Select All" feature, which shouldn't be a problem. But once you click on that, you will get a javascript error:

      selectCode is not defined

      Additionally, the browser will jump to the top of the page.

      I was able to fix it this way:
      Open styles/prosilver/template/viewtopic_print.html
      Find:

      <link href="{T_THEME_PATH}/print.css" rel="stylesheet" type="text/css" />

      Add before:

      <script type="text/javascript" src="{T_TEMPLATE_PATH}/forum_fn.js"></script>

            igorw Igor Wiedler [X] (Inactive)
            marc1706 marc1706
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: