-
Bug
-
Resolution: Unresolved
-
Major
-
Windows
Hi,
I have an issue that i have one parameter(AC reactive reference parameter), that is dependent on other parameter.
i am generating input checkboxes according to the parent parameter.(by generating html by groovy).
The issue is that when the checboxes are pressed and i am regenerating the checkboxes by the parent parameter the chosen checkboxes get reset.
i want to keep the checkboxes on the localstorage and redraw the checkboxes by the values inside the localstorage. but for this i need to get the event which refreshes the parameter, so it will check the checkboxes accoriding to the client localstorage.
i tried using the < body onload...> but the screen gets stuck.
how can i register an event to the function which will redraw the checkboxes?
also the javascript functions do not work on the parameter so i have put them on the parent parameter. but still not able to retrigger the functions once the AC parameter is refreshed.
Thx,
Ariel
Hmm, at the moment I think it would be quite hard. We don't expose enough in the JS code for you to conveniently capture events. And we are slowly adding more security layers due to recente CVE's logged against the plug-in.
Will need more time to think in a solution that is generic enough, or a workaround. A possibility too is that the Jenkins core might some day have a JS layer too, giving more flexibility to plug-in devs & users to customize UI & parameters.
Bruno