Commit e0b3aa59 authored by Serge S. Koval's avatar Serge S. Koval Committed by GitHub

Merge pull request #1333 from aq1/master

Update actions.js
parents 0fce18e3 8eb8b688
......@@ -33,4 +33,18 @@ var AdminModelActions = function(actionErrorMessage, actionConfirmations) {
$('input.action-checkbox').prop('checked', this.checked);
});
});
$(function() {
var inputs = $('input.action-checkbox');
inputs.change(function() {
var allInputsChecked = true;
for (var i = 0; i < inputs.length; i++) {
if (!inputs[i].checked) {
allInputsChecked = false;
break;
}
}
$('.action-rowtoggle').attr('checked', allInputsChecked);
});
});
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment