Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9810

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.7-PL1
    • Fix Version/s: 3.0.8-RC1
    • Component/s: Viewing posts
    • Labels:
      None
    • Environment:
      PHP 5.2.12, MySQL(i) 5.0.67-community-log, Firefox 3.6

      Description

      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>

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: