http://defect.opensolaris.org/bz/show_bug.cgi?id=19200
--- Comment #1 from Jan Friedel <[email protected]> 2012-03-30 12:30:55 UTC --- Proposal: diff -r e06c9ca246a1 src/org/opensolaris/opengrok/web/PageConfig.java --- a/src/org/opensolaris/opengrok/web/PageConfig.java Fri Mar 30 13:27:51 2012 +0200 +++ b/src/org/opensolaris/opengrok/web/PageConfig.java Fri Mar 30 14:14:56 2012 +0200 @@ -600,12 +600,12 @@ public String[] getSearchOnlyIn() { if (isDir()) { return path.length() == 0 - ? new String[]{"/", "/", "disabled=\"\""} - : new String[]{path, path, ""}; + ? new String[]{"/", "this directory", "disabled=\"\""} + : new String[]{path, "this directory", ""}; } String[] res = new String[3]; res[0] = path.substring(0, path.lastIndexOf('/') + 1); - res[1] = path.substring(res[0].length()); + res[1] = res[0]; res[2] = ""; return res; } diff -r e06c9ca246a1 web/mast.jsp --- a/web/mast.jsp Fri Mar 30 13:27:51 2012 +0200 +++ b/web/mast.jsp Fri Mar 30 14:14:56 2012 +0200 @@ -147,9 +147,6 @@ String[] vals = cfg.getSearchOnlyIn(); %><li><input type="checkbox" name="path" value="<%= vals[0] %>" <%= vals[2] %>/> only in <b><%= vals[1] %></b></li> - <%-- TODO: for directories a better way is probably to use - './' or "this directory" instead of the full path - again - full path is already shown above the navbar ... --%> </ul><% if (proj != null) { %> @@ -163,4 +160,4 @@ <% } /* ---------------------- mast.jsp end --------------------- */ -%> \ No newline at end of file +%> -- Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ opengrok-dev mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opengrok-dev
