Details

    • Similar Issues:

      Description

      Prior to 33c8ac4 in 1.514, copyButton.js had extraneous quotes, so the ZeroClipboard Stapler adjunct could not be loaded at all. After that, it is loaded, but (I think as a regression from SECURITY-71) just throws a JavaScript error when the button is clicked, as can be seen e.g. from the UI Samples plugin:

      Uncaught TypeError: Cannot call method 'getAttribute' of undefined
      ZeroClipboard.ready ZeroClipboard.js:245
      ZeroClipboard.setHandCursor ZeroClipboard.js:181
      (anonymous function) copyButton.js:11
      (anonymous function) behavior.js:111
      (anonymous function) behavior.js:107
      Behaviour.applySubtree behavior.js:93
      Behaviour.apply behavior.js:76
      (anonymous function) behavior.js:71
      window.onload behavior.js:125
      

        Attachments

          Activity

          Hide
          jglick Jesse Glick added a comment -

          Cannot get it to work. While the demo at http://zeroclipboard.org/ is working for me, when I try to load ZC from a Jenkins page, the button simply does nothing when clicked—even when I copy the minimal sample from their site rather than trying to use the more complicated stuff in copyButton.js. Tried upgrading to 1.2.3 without success.

          Show
          jglick Jesse Glick added a comment - Cannot get it to work. While the demo at http://zeroclipboard.org/ is working for me, when I try to load ZC from a Jenkins page, the button simply does nothing when clicked—even when I copy the minimal sample from their site rather than trying to use the more complicated stuff in copyButton.js. Tried upgrading to 1.2.3 without success.
          Show
          jglick Jesse Glick added a comment - My experiments so far: https://github.com/jglick/jenkins/compare/copyButton-JENKINS-21052
          Hide
          jglick Jesse Glick added a comment -

          Note that when I use the minimal sample, the load event is fired, but no other events are. I confirmed that the moviePath is sensible.

          Show
          jglick Jesse Glick added a comment - Note that when I use the minimal sample, the load event is fired, but no other events are. I confirmed that the moviePath is sensible.
          Hide
          danielbeck Daniel Beck added a comment -

          Does this issue still occur after the recent update of ZeroClipboard?

          Show
          danielbeck Daniel Beck added a comment - Does this issue still occur after the recent update of ZeroClipboard?
          Hide
          jglick Jesse Glick added a comment -

          Not sure, needs to be rechecked.

          Show
          jglick Jesse Glick added a comment - Not sure, needs to be rechecked.

            People

            • Assignee:
              kohsuke Kohsuke Kawaguchi
              Reporter:
              jglick Jesse Glick
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: