Skip to content

Commit

Permalink
JENKINS-73971 Extract event handlers in NestedViewsSearch/search-resu…
Browse files Browse the repository at this point in the history
…lts.jelly
  • Loading branch information
judovana committed Oct 16, 2024
1 parent 78604f5 commit 6525070
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout">
<st:adjunct includes="hudson.plugins.nested_view.NestedViewsSearch.searchscripts"/>
<j:set var="q" value="${request.getParameter('q')}"/>
<j:new var="h" className="hudson.Functions"/>
<!-- needed for printing title. -->
<l:layout title="${%Search for} '${q}'">
<l:side-panel>
<h2><l:icon class="icon-help icon-sm" /> Search help</h2>
<a onclick="document.getElementById('button_expand_2_1').style.display = 'none'; document.getElementById('button_collapse_2_1').style.display = 'inline'; document.getElementById('details_2_1').style.display = 'block'; return false;"
<a onclick="nvwp_showHide_button_2_1_show()"
style="font-size: smaller; display: inline" href="#" id="button_expand_2_1">Search History (expand)</a>
<a onclick="document.getElementById('button_collapse_2_1').style.display = 'none';document.getElementById('details_2_1').style.display = 'none';document.getElementById('button_expand_2_1').style.display = 'inline'; return false;"
<a onclick="nvwp_showHide_button_2_1_hide()"
style="font-size: smaller; display: none" href="#" id="button_collapse_2_1">Search History (collapse)</a>
<div style="display: none" id="details_2_1">
<ol>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// <![CDATA[

function nvwp_showHide_button_2_1_show() {
document.getElementById('button_expand_2_1').style.display = 'none';
document.getElementById('button_collapse_2_1').style.display = 'inline';
document.getElementById('details_2_1').style.display = 'block';
return false;
}
function nvwp_showHide_button_2_1_hide() {
document.getElementById('button_collapse_2_1').style.display = 'none';
document.getElementById('details_2_1').style.display = 'none';
document.getElementById('button_expand_2_1').style.display = 'inline';
return false;
}

// ]]>

0 comments on commit 6525070

Please sign in to comment.