Skip to content

Commit 2ebcae2

Browse files
tulinkryVladimir Kotal
authored andcommitted
making an exception for group Other
fixes #2601
1 parent 900b604 commit 2ebcae2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/web/Scripts.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public String toHtml() {
126126
SCRIPTS.put("jquery-tablesorter", new FileScript("js/jquery-tablesorter-2.26.6.min.js", 12));
127127
SCRIPTS.put("tablesorter-parsers", new FileScript("js/tablesorter-parsers-0.0.1.js", 13));
128128
SCRIPTS.put("searchable-option-list", new FileScript("js/searchable-option-list-2.0.6.js", 14));
129-
SCRIPTS.put("utils", new FileScript("js/utils-0.0.25.js", 15));
129+
SCRIPTS.put("utils", new FileScript("js/utils-0.0.26.js", 15));
130130
SCRIPTS.put("repos", new FileScript("js/repos-0.0.1.js", 20));
131131
SCRIPTS.put("diff", new FileScript("js/diff-0.0.3.js", 20));
132132
SCRIPTS.put("jquery-caret", new FileScript("js/jquery.caret-1.5.2.min.js", 25));

opengrok-web/src/main/webapp/js/utils-0.0.25.js renamed to opengrok-web/src/main/webapp/js/utils-0.0.26.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2280,6 +2280,13 @@ function transform_projects_to_groups() {
22802280

22812281
$sel.find('.sol-optiongroup').each(function () {
22822282
var $el = $(this);
2283+
2284+
// handle "Other" group for ungrouped projects
2285+
if ($el.find('.sol-optiongroup-label').text() === 'Other') {
2286+
$el.find('.sol-checkbox[name=group]').prop('checked', false);
2287+
return;
2288+
}
2289+
22832290
var checkboxs = $el.find('.sol-option .sol-checkbox')
22842291
for (var i = 0; i < checkboxs.length; i++) {
22852292
var checkbox = $(checkboxs[i])

0 commit comments

Comments
 (0)