Skip to content

Commit

Permalink
Fixed issue #55 - Added border radius for first and last drop down op…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
gfranko committed Nov 24, 2012
1 parent a2a9a6b commit 22706df
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/javascripts/jquery.selectBoxIt.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@
// Stores the individual dropdown list options inside of the `listItems` instance variable
self.listItems = self.list.find("li");

// Sets the 'selectboxit-option-first' class name on the first drop down option
self.listItems.first().addClass("selectboxit-option-first");


// Sets the 'selectboxit-option-last' class name on the last drop down option
self.listItems.last().addClass("selectboxit-option-last");

// Set the disabled CSS class for select box options
self.list.find("li[data-disabled='true']").not(".optgroupHeader").addClass("ui-state-disabled");

Expand Down
Loading

0 comments on commit 22706df

Please sign in to comment.