Skip to content

Commit 4236cb5

Browse files
committed
Remove superfluous boolean
1 parent 945dc58 commit 4236cb5

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
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
@@ -111,7 +111,7 @@ public String toHtml() {
111111
SCRIPTS.put("jquery-tablesorter", new FileScript("js/jquery-tablesorter-2.26.6.min.js", 12));
112112
SCRIPTS.put("tablesorter-parsers", new FileScript("js/tablesorter-parsers-0.0.2.min.js", 13));
113113
SCRIPTS.put("tablesorter-parsers" + DEBUG_SUFFIX, new FileScript("js/tablesorter-parsers-0.0.2.js", 13));
114-
SCRIPTS.put("searchable-option-list", new FileScript("js/searchable-option-list-2.0.9.min.js", 14));
114+
SCRIPTS.put("searchable-option-list", new FileScript("js/searchable-option-list-2.0.10.min.js", 14));
115115
SCRIPTS.put("utils", new FileScript("js/utils-0.0.34.min.js", 15));
116116
SCRIPTS.put("utils" + DEBUG_SUFFIX, new FileScript("js/utils-0.0.34.js", 15));
117117
SCRIPTS.put("repos", new FileScript("js/repos-0.0.2.min.js", 20));

opengrok-web/src/main/webapp/js/searchable-option-list-2.0.9.js renamed to opengrok-web/src/main/webapp/js/searchable-option-list-2.0.10.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@
152152
init: function () {
153153
this.numSelected = 0;
154154
this.valMap = null;
155-
this.bulkMode = false;
156155
this.config = $.extend(true, {}, this.defaults, this.options, this.metadata);
157156

158157
var originalName = this._getNameAttribute(),
@@ -1052,7 +1051,7 @@
10521051
this.numSelected = 1 + this.numSelected;
10531052

10541053
if (this.config.maxShow !== 0 && this.numSelected > this.config.maxShow) {
1055-
if (!this.bulkMode) {
1054+
if (this.valMap == null) {
10561055
this._setXItemsSelected();
10571056
}
10581057
} else {
@@ -1110,7 +1109,7 @@
11101109
$myDisplayItem.remove();
11111110
solOptionItem.displaySelectionItem = undefined;
11121111
}
1113-
if (!this.bulkMode) {
1112+
if (this.valMap == null) {
11141113
this._setXItemsSelected();
11151114
}
11161115
},
@@ -1199,7 +1198,6 @@
11991198
selectAll: function (/* string or undefined */optgroup) {
12001199
if (this.config.multiple) {
12011200
this._buildValMap();
1202-
this.bulkMode = true;
12031201

12041202
var $changedInputs = !optgroup ? this.$selectionContainer
12051203
: this.$selectionContainer
@@ -1218,7 +1216,6 @@
12181216
this.config.events.onChange.call(this, this, $changedInputs);
12191217
}
12201218

1221-
this.bulkMode = false;
12221219
this.valMap = null;
12231220
this._setXItemsSelected();
12241221
}
@@ -1229,7 +1226,6 @@
12291226
invert: function () {
12301227
if (this.config.multiple) {
12311228
this._buildValMap();
1232-
this.bulkMode = true;
12331229

12341230
var $closedInputs = this.$selectionContainer
12351231
.find('input[type="checkbox"][name=project]:not([disabled], :checked)')
@@ -1247,7 +1243,6 @@
12471243
this.config.events.onChange.call(this, this, $openedInputs.add($closedInputs));
12481244
}
12491245

1250-
this.bulkMode = false;
12511246
this.valMap = null;
12521247
this._setXItemsSelected();
12531248
}
@@ -1258,7 +1253,6 @@
12581253
deselectAll: function ( /* string or undefined */ optgroup) {
12591254
if (this.config.multiple) {
12601255
this._buildValMap();
1261-
this.bulkMode = true;
12621256

12631257
var $changedInputs = !optgroup ? this.$selectionContainer
12641258
: this.$selectionContainer
@@ -1277,7 +1271,6 @@
12771271
this.config.events.onChange.call(this, this, $changedInputs);
12781272
}
12791273

1280-
this.bulkMode = false;
12811274
this.valMap = null;
12821275
this._setXItemsSelected();
12831276
}

0 commit comments

Comments
 (0)