static/assets/js/bootstrap-select.js
File bootstrap-select.js
has 334 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
!function($) {
var Selectpicker = function(element, options, e) {
if (e ) {
e.stopPropagation();
e.preventDefault();
Function init
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init: function (e) {
var _this = this;
this.$element.hide();
this.multiple = this.$element.prop('multiple');
Function createLi
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createLi: function() {
var _this = this;
var _li = [];
var _liA = [];
Function clickListener
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
clickListener: function() {
var _this = this;
$('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });
Function render
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render:function() {
var _this = this;
//Set width of select
if (this.options.width == 'auto') {
Function selectpicker
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.selectpicker = function(option, event) {
//get the args of the outer function..
var args = arguments;
var value;
var chain = this.each(function () {