Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48811

How to include select2 framework as part of the jquery plugin

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • jquery-plugin
    • None

      The jquery uses a stapler framework adjunct to supply the the jquery.full.js or jquery.min.js javascript file whereas it provides the jquery.colorbox-min.js directly.  Which method should be used to include the select2 framework framework into the jquery plugin? 

          [JENKINS-48811] How to include select2 framework as part of the jquery plugin

          Phil Jay added a comment -

          I'd like `select2` functionality in Jenkins.

          My choice parameters dropdowns are out of control.

          marioja .. did you get anywhere with this?

          Phil Jay added a comment - I'd like `select2` functionality in Jenkins. My choice parameters dropdowns are out of control. marioja .. did you get anywhere with this?

          Mario Jauvin added a comment -

          psjay no, nothing.

          Mario Jauvin added a comment - psjay no, nothing.

          Phil Jay added a comment -

          I've got it working  -  in a bit of a hacky way ...  but this works for me:

          Using the Simple Theme plugin:

          1. Set the CSS to the public select-2 CSS: https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css
          2. Set the JS to a snippet that I stored in my Github account, and expose via "rawgit.com":
            Source: https://github.com/ps-jay/jenkins-select2/blob/master/jenkins-select2.js  (you can ignore the whole blinking bit ...)
            "Hosted": https://cdn.rawgit.com/ps-jay/jenkins-select2/master/jenkins-select2.js

          Phil Jay added a comment - I've got it working  -  in a bit of a hacky way ...  but this works for me: Using the Simple Theme plugin: Set the CSS to the public select-2 CSS: https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.6-rc.0/css/select2.min.css Set the JS to a snippet that I stored in my Github account, and expose via "rawgit.com": Source: https://github.com/ps-jay/jenkins-select2/blob/master/jenkins-select2.js   (you can ignore the whole blinking bit ...) "Hosted": https://cdn.rawgit.com/ps-jay/jenkins-select2/master/jenkins-select2.js

          Ulli Hafner added a comment -

          Ulli Hafner added a comment - See https://github.com/jenkinsci/select2-api-plugin .

            Unassigned Unassigned
            marioja Mario Jauvin
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: