Skip to content

Commit f0fd109

Browse files
committed
adding a link to toggle scopes window in xref
fixes #1333
1 parent f1a2fec commit f0fd109

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

web/httpheader.jspf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if (cfg.getPrefix().equals(Prefix.HIST_L)) {
8989
<script type="text/javascript" src="<%=ctxPath%>/js/tablesorter.parsers-0.0.1.js"></script>
9090
<script type="text/javascript" src="<%=ctxPath%>/js/searchable-option-list-2.0.2.min.js"></script>
9191
<%--<script type="text/javascript" src="<%=ctxPath%>/js/jquery.autocomplete-1.1.pack.js"></script> --%>
92-
<script type="text/javascript" src="<%=ctxPath%>/js/utils-0.0.1.js"></script>
92+
<script type="text/javascript" src="<%=ctxPath%>/js/utils-0.0.2.js"></script>
9393
<title><%=cfg.getTitle()%></title><%
9494
out.write(cfg.getHeaderData());
9595
%>

web/js/utils-0.0.1.js renamed to web/js/utils-0.0.2.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
2222
*
2323
* Portions Copyright 2011 Jens Elkner.
2424
*/
@@ -1055,6 +1055,11 @@
10551055
return old.call($window).trigger(event);
10561056
}
10571057
});
1058+
1059+
$('.scopes-toggle').click(function () {
1060+
$window.toggle();
1061+
return false;
1062+
})
10581063
},
10591064
update: function (data) {
10601065
if(!this.$window.is(':visible') && !this.$window.data('shown-once')) {

web/minisearch.jspf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,13 @@ org.opensolaris.opengrok.web.Util"%><%
7676
%><li><a href="#" onclick="javascript:lntoggle();return false;"
7777
title="<%= "Show or hide line numbers (might be slower if "
7878
+ "file has more than 10 000 lines)."
79-
%>"><span id="line"></span>Line#</a></li><li><a
79+
%>"><span id="line"></span>Line#</a></li>
80+
<li><a href="#" class="scopes-toggle"
81+
title="<%= "Toggle scopes window."
82+
%>"><span id="line"></span>Scopes#</a></li><li><a
8083
href="#" id="navigate"
8184
title="Show or hide symbol list."><%--
82-
--%><span id="defbox"></span>Navigate</a></li><%
85+
--%><span id="defbox"></span>Navigate#</a></li><%
8386
}
8487
%>
8588
<li><a href="<%= context + Prefix.RAW_P + cfg.getUriEncodedPath()

0 commit comments

Comments
 (0)