From 991b50c322b3fb464f798f596af417003e3d00be Mon Sep 17 00:00:00 2001 From: andryshok Date: Thu, 11 Mar 2021 00:04:03 +0300 Subject: [PATCH] Adding action box button - deselect all to single select box for fast clear selection if option actionsBox is true --- js/bootstrap-select.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js index 4431dbb86..3a55b066b 100644 --- a/js/bootstrap-select.js +++ b/js/bootstrap-select.js @@ -1146,7 +1146,16 @@ '' + '' + ''; - } + }else if( !this.multiple && this.options.actionsBox ){ + actionsbox = + '
' + + '
' + + '' + + '
' + + '
'; + } if (this.multiple && this.options.doneButton) { donebutton = @@ -3021,8 +3030,7 @@ } }, - changeAll: function (status) { - if (!this.multiple) return; + changeAll: function (status) { if (typeof status === 'undefined') status = true; var element = this.$element[0],