Skip to content

Commit 92fbcd3

Browse files
author
Tom Doan
committed
Change 'selectedDelimiter' option to 'multiDelimiter'
1 parent 7e62020 commit 92fbcd3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Name | Type | Default | Description
6060
`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.
6161
`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.
6262
`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.
63-
`selectedDelimiter` | string | ; | The separator character to use for the list of selected values in a multi-select menu.
63+
`multiDelimiter` | string | ; | The separator character to use for the list of selected values in a multi-select menu.
6464
`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>`).
6565
`afterLoad` | function | | Callback function to execute after the drop-down menu widget is loaded.
6666

dist/js/jquery.prettydropdowns.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
customClass: 'arrow',
1616
height: 50,
1717
hoverIntent: 200,
18-
selectedDelimiter: '; ',
18+
multiDelimiter: '; ',
1919
selectedMarker: '&#10003;',
2020
afterLoad: function(){}
2121
}, oOptions);
@@ -443,7 +443,7 @@
443443
var $select = $dropdown.parent().children('select'),
444444
sSelected = $('option', $select).map(function() {
445445
if (this.selected) return this.text;
446-
}).get().join(oOptions.selectedDelimiter);
446+
}).get().join(oOptions.multiDelimiter);
447447
if (sSelected) {
448448
var sTitle = ($select.attr('title') ? $select.attr('title') + '\n' : '') + 'Selected: ' + sSelected;
449449
$dropdown.children('.selected').text(sSelected);

0 commit comments

Comments
 (0)