From c64a4837c0baac07028ccf1c437a67c9a5b9c7aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Caspar?= Date: Tue, 13 Dec 2016 16:50:09 +0100 Subject: [PATCH] Expose $container to the selectAll/deselectAll callbacks --- dist/js/bootstrap-multiselect.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/js/bootstrap-multiselect.js b/dist/js/bootstrap-multiselect.js index 9a50a18a..7a8a27c5 100644 --- a/dist/js/bootstrap-multiselect.js +++ b/dist/js/bootstrap-multiselect.js @@ -360,14 +360,18 @@ }, /** * Triggered on select all. + * + * @param {jQuery} $container */ - onSelectAll: function() { + onSelectAll: function($container) { }, /** * Triggered on deselect all. + * + * @param {jQuery} $container */ - onDeselectAll: function() { + onDeselectAll: function($container) { }, /** @@ -1353,7 +1357,7 @@ } if (triggerOnSelectAll) { - this.options.onSelectAll(); + this.options.onSelectAll(this.$container); } }, @@ -1398,7 +1402,7 @@ } if (triggerOnDeselectAll) { - this.options.onDeselectAll(); + this.options.onDeselectAll(this.$container); } },