jenkinsci/lockable-resources-plugin

Uncaught SyntaxError: Unexpected end of input

Closed this issue · 1 comments

Jenkins and plugins versions report

Environment
Jenkins v2.482
Lockable Resources 1322.v102a_16ce25ec

What Operating System are you using (both controller, and any agents involved in the problem)?

Windows 10 Pro 22H1 (19045.4894)

Reproduction steps

  1. Go to Lockable Resources page when there is a queue.
  2. Open the developer console

Expected Results

No Errors

Actual Results

Uncaught SyntaxError: Unexpected end of input

Anything else?

No response

Are you interested in contributing a fix?

The following event handler seems to be missing a closing brace & bracket:

  document.querySelectorAll(".lockable-resources-change-queue-order").forEach(function (button) {
    button.addEventListener("click", function (event) {
      changeQueueOrder(event.target.dataset.queueItemId);
    });
  }); <--- add this
basil commented

Sorry about that. This was fixed in #724 and released in 1325.v8cf9c299484a_.