You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 28, 2020. It is now read-only.
Currently it doesn't trigger "change" event for children checkboxes so there's no way to perform an action after all the checkboxes are checked/unchecked.
The text was updated successfully, but these errors were encountered:
checkAll.prototype.init = function() {
this._checkChildren();
var plugin = this;
this.$el.on('change', function(e) {
var $children = $(plugin.options.childCheckboxes, plugin.options.container).not(plugin.$el);
// 2015/9/5 modified by Thomas @ BeamStyle: Modification to only change checkboxes that need change, and then triggering the change event for those checkboxes
var isChecked = $(this).prop('checked');
$children = isChecked ? $children.not(':checked') : $children.filter(':checked');
$children.prop('checked', $(this).prop('checked')).trigger("change");
});
$(this.options.container).on('change', plugin.options.childCheckboxes, function(e) {
plugin._checkChildren();
});
};
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently it doesn't trigger "change" event for children checkboxes so there's no way to perform an action after all the checkboxes are checked/unchecked.
The text was updated successfully, but these errors were encountered: