Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions dist/js/bootstrap-select.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* Bootstrap-select v1.6.3 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2014 bootstrap-select
* Copyright 2013-2015 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
(function ($) {
Expand Down Expand Up @@ -150,7 +150,8 @@
mobile: false,
selectOnTab: false,
dropdownAlignRight: false,
searchAccentInsensitive: false
searchAccentInsensitive: false,
select:null
};

Selectpicker.prototype = {
Expand Down Expand Up @@ -192,6 +193,9 @@
this.$menu.data('this', this);
this.$newElement.data('this', this);
if (this.options.mobile) this.mobile();
if(typeof(this.options.select) == "function"){
this.$menu.find('.selectpicker li').on('click',this.options.select);
}
},

createDropdown: function () {
Expand Down
Loading