Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ExactTarget/fuelux
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1f742662b110d36e97ae89202579613bd5994c23
Choose a base ref
..
head repository: ExactTarget/fuelux
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8798e68d65467bfcba21c571de06511e4f170507
Choose a head ref
Showing with 4 additions and 3 deletions.
  1. +4 −3 js/selectlist.js
7 changes: 4 additions & 3 deletions js/selectlist.js
Original file line number Diff line number Diff line change
@@ -43,11 +43,12 @@
this.resize();
}

// if selectlist is empty, disable it
if(this.$dropdownMenu.children('li').length === 0) {
// if selectlist is empty or is one item, disable it
var items = this.$dropdownMenu.children('li');
if( items.length === 0 || items.length === 1) {
this.disable();
}

};

Selectlist.prototype = {