• Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • timestamper-plugin
    • None
    • Jenkins 1.628
      Timestamper 1.7.2
      Browser Chromium 45.0.2454.101 Ubuntu 14.04

      No timestamp mode switcher (System clock time, Elapsed time, None) when open in chromium. But switcher exists when open the same page in Firefox.

          [JENKINS-31213] Timestamps switcher not available in chromium

          I wasn't able to reproduce this with Debian Jessie and the same versions of Jenkins, Timestamper and Chrome. Can you see what appears in the Javascript Console when the page loads?

          Steven G Brown added a comment - I wasn't able to reproduce this with Debian Jessie and the same versions of Jenkins, Timestamper and Chrome. Can you see what appears in the Javascript Console when the page loads?

          Vyacheslav Koshcheyev added a comment - - edited

          I'v added the screenshot (Screenshot from 2016-01-14_10_58_35.png) of javascript execution.

          Vyacheslav Koshcheyev added a comment - - edited I'v added the screenshot ( Screenshot from 2016-01-14_10_58_35.png ) of javascript execution.

          Steven G Brown added a comment - - edited

          It seems your browser has an out-of-date script, from an older version of Timestamper. Can you try opening the script in your browser (link below) and refreshing it with Ctrl+F5?
          http://jenkins-mobile-master.2gis.local:8080/extensionList/hudson.console.ConsoleAnnotatorFactory/hudson.plugins.timestamper.annotator.TimestampAnnotatorFactory/script.js

          It should look like this:
          https://github.com/jenkinsci/timestamper-plugin/blob/timestamper-1.7.2/src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory/script.js

              // Jenkins 1.608 displays the side panel widgets in 'side-panel-content'
              var element = document.getElementById('side-panel-content');
              if (null == element) {
                  // Jenkins 1.619 has no 'side-panel-content', it displays the widgets in 'side-panel' 
                  element = document.getElementById('side-panel');
                  if (null == element) {
                      // element not found, so return to avoid an error (JENKINS-23867)
                      return;
                  }
              }
          

          Steven G Brown added a comment - - edited It seems your browser has an out-of-date script, from an older version of Timestamper. Can you try opening the script in your browser (link below) and refreshing it with Ctrl+F5? http://jenkins-mobile-master.2gis.local:8080/extensionList/hudson.console.ConsoleAnnotatorFactory/hudson.plugins.timestamper.annotator.TimestampAnnotatorFactory/script.js It should look like this: https://github.com/jenkinsci/timestamper-plugin/blob/timestamper-1.7.2/src/main/resources/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory/script.js // Jenkins 1.608 displays the side panel widgets in 'side-panel-content' var element = document.getElementById( 'side-panel-content' ); if ( null == element) { // Jenkins 1.619 has no 'side-panel-content' , it displays the widgets in 'side-panel' element = document.getElementById( 'side-panel' ); if ( null == element) { // element not found, so return to avoid an error (JENKINS-23867) return ; } }

          Thanks! Now it works.

          Vyacheslav Koshcheyev added a comment - Thanks! Now it works.

          Great. You're welcome.

          Steven G Brown added a comment - Great. You're welcome.

            stevengbrown Steven G Brown
            vok1980 Vyacheslav Koshcheyev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: