Skip to content

Commit

Permalink
Height option fix
Browse files Browse the repository at this point in the history
  • Loading branch information
berkandirim authored and Berkan Dirim committed May 3, 2017
1 parent 2154638 commit 9a8ed43
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.listswap",
"version": "0.3.0",
"version": "0.3.1",
"description": "ListSwap is a jQuery plugin that allows you to swap (add/remove) items between two drop-down lists.",
"main": "",
"authors": [
Expand Down
2 changes: 1 addition & 1 deletion dist/jquery.listswap.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jquery.listswap.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions lib/jquery.listswap.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@
classes.truncate = ' ' + prefix + '-truncate';
}
list.append('<li class="' + classes.option + classes.truncate + '" data-value="' + value + '">' + text + '</li>');
if (_this.options.height) {
list.css('height', _this.options.height);
}
});
if (_this.options.height) {
list.css('height', _this.options.height);
}
},

moveOption: function(el, src, dest, wrap, button) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jquery.listswap",
"version": "0.3.0",
"version": "0.3.1",
"description": "ListSwap is a jQuery plugin that allows you to swap (add/remove) items between two drop-down lists.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 9a8ed43

Please sign in to comment.