Skip to content
Snippets Groups Projects
Unverified Commit 6fa19835 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix

parent 64ab3e3e
No related branches found
No related tags found
No related merge requests found
......@@ -11,13 +11,15 @@ window.osuny.BatchSelectable = function BatchSelectable (element) {
window.osuny.BatchSelectable.prototype.initEvents = function () {
'use strict';
var i;
var selectSingleInput,
i;
if (this.selectAllInput !== null) {
this.selectAllInput.addEventListener('change', this.toggleSingleInputs.bind(this));
}
if (this.actionsContainer !== null) {
for (i = 0; i < this.selectSingleInputs.length; i += 1) {
this.selectSingleInputs[i].addEventListener('change', this.toggleActionsContainer.bind(this));
selectSingleInput = this.selectSingleInputs[i];
selectSingleInput.addEventListener('change', this.toggleActionsContainer.bind(this));
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment