Skip to content

Commit

Permalink
Change 'selectedDelimiter' option to 'multiDelimiter'
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Doan committed May 12, 2017
1 parent 7e62020 commit 92fbcd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Name | Type | Default | Description
`customClass` | string | arrow | The class name to customize the drop-down menu style. The default `arrow` class displays a chevron-type arrow icon. Two additional helper classes are built in (add either or both to `arrow`): `triangle` converts the chevron into a solid triangle; `small` renders the arrow icon at half size.
`height` | number | 50 | The drop-down menu item height. The minimum value is 8. Note that the maximum number of items displayed when the menu is opened is determined by the `size` attribute of the `<select>` element.
`hoverIntent` | number | 200 | The wait period (in milliseconds) before collapsing the drop-down menu after you hover off of it. If you hover back onto the menu within the wait period, it will remain open. The minimum value is 0.
`selectedDelimiter` | string | ; | The separator character to use for the list of selected values in a multi-select menu.
`multiDelimiter` | string | ; | The separator character to use for the list of selected values in a multi-select menu.
`selectedMarker` | string | **&#10003;** | The icon or symbol to mark that an item is selected. HTML is accepted (e.g., `<i class="fa fa-check"></i>`).
`afterLoad` | function | | Callback function to execute after the drop-down menu widget is loaded.

Expand Down
4 changes: 2 additions & 2 deletions dist/js/jquery.prettydropdowns.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
customClass: 'arrow',
height: 50,
hoverIntent: 200,
selectedDelimiter: '; ',
multiDelimiter: '; ',
selectedMarker: '&#10003;',
afterLoad: function(){}
}, oOptions);
Expand Down Expand Up @@ -443,7 +443,7 @@
var $select = $dropdown.parent().children('select'),
sSelected = $('option', $select).map(function() {
if (this.selected) return this.text;
}).get().join(oOptions.selectedDelimiter);
}).get().join(oOptions.multiDelimiter);
if (sSelected) {
var sTitle = ($select.attr('title') ? $select.attr('title') + '\n' : '') + 'Selected: ' + sSelected;
$dropdown.children('.selected').text(sSelected);
Expand Down

0 comments on commit 92fbcd3

Please sign in to comment.