jenkinsci/copyartifact-plugin — pull request #35 by ikedam (2014-04-20 00:49:24+00:00)
Title: [JENKINS-22590] toggle selectbox and combobox for permalink selection

Alternate approach for @jglick 's fix for [JENKINS-22590] (https://issues.jenkins-ci.org/browse/JENKINS-22590) (#34).

* Users can select permalink from pulldown:
![manual-switch1](https://cloud.githubusercontent.com/assets/3115961/2749788/20989084-c825-11e3-9e59-ed62787e271b.png)
* Users also can input permalink name by hand by checking "input manually":
![manual-switch2](https://cloud.githubusercontent.com/assets/3115961/2749790/2876b66e-c825-11e3-962d-200834aacdd6.png)

Tested with Jenkins 1.509 (targeted version):

|Behavir |Firefox 28.0|Chrome 34.0|IE11 |IE11 (IE10 mode)|IE11 (IE9 mode)|IE11 (IE8 mode)|
|:----------------------------------------|:-----------|:----------|:--------|:---------------|:--------------|:--------------|
|First display |unchecked |unchecked |unchecked|unchecked |unchecked |unchecked |
|Re-displayed with known permalink input |unchecked |unchecked |unchecked|unchecked |unchecked |unchecked |
|Re-displayed with unknown permalink input|checked |checked |checked |checked |checked |**unchecked** |
|Toggling |OK |OK |OK |OK |OK |OK |
|Saving |OK |OK |**NG** |OK |OK |OK |

* Saving failure in IE11 is caused by [JENKINS-19171] (https://issues.jenkins-ci.org/browse/JENKINS-19171) , fixed in Jenkins 1.531.
* Initial state failure in IE8 is caused for "fire" event not triggered (looks element.fireEvent fails).

Tested with Jenkins 1.532.1:

|Condition |Firefox 28.0|Chrome 34.0|IE11 |IE11 (IE10 mode)|IE11 (IE9 mode)|IE11 (IE8 mode)|
|:----------------------------------------|:-----------|:----------|:--------|:--------------|:--------------|:--------------|
|First display |unchecked |unchecked |unchecked|unchecked |unchecked |unchecked |
|Re-displayed with known permalink input |unchecked |unchecked |unchecked|unchecked |unchecked |unchecked |
|Re-displayed with unknown permalink input|checked |checked |checked |checked |checked |**unchecked** |
|Toggling |OK |OK |OK |OK |OK |OK |
|Saving |OK |OK |OK |OK |OK |OK |

* Initial state failure in IE8 is caused for "fire" event not triggered (looks element.fireEvent fails).

I'm not sure which browsers should be supported in Jenkins.
Anyway, I'll have a look why fireEvent fails in Jenkins core.