[global-build-stats] Extract inline script blocks in hudson/plugins/global_build_stats/GlobalBuildStatsPlugin/retentionStrategies/discardResultsOlderThanDays.jelly

XMLWordPrintable

    Problems

    == Inline Script Block
    Line: 6
    ----
    <script type="text/javascript">
            document.getElementById('${strategy.id}_checkbox').onchange = function(){
                document.getElementById('${strategy.id}_days').disabled = !document.getElementById('${strategy.id}_checkbox').checked;
            }
            document.getElementById('${strategy.id}_checkbox').onchange(); // For initialization
        </script>
    ----
    
    == Inline Script Block
    Line: 6
    ----
    <script type="text/javascript">
            document.getElementById('${strategy.id}_checkbox').onchange = function(){
                document.getElementById('${strategy.id}_days').disabled = !document.getElementById('${strategy.id}_checkbox').checked;
            }
            document.getElementById('${strategy.id}_checkbox').onchange(); // For initialization
        </script>
    ----
    

    Solution

    https://www.jenkins.io/doc/developer/security/csp/#inline-javascript-blocks

          Assignee:
          Markus Winter
          Reporter:
          Basil Crow
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Created:
            Updated:
            Resolved: