Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Traditional module multiple select name fix #35

Merged
merged 8 commits into from
Apr 30, 2015
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dist/selectivity-full.js
Original file line number Diff line number Diff line change
Expand Up @@ -4420,6 +4420,9 @@ Selectivity.Templates = {
* mode - Mode in which select exists, single or multiple.
*/
selectCompliance: function(options) {
if (options.mode === 'multiple' && !options.name.match(/\[\]$/)) {
options.name = options.name + '[]';
}
return ('<select name="' + options.name + '"' + (options.mode === 'multiple' ? ' multiple' : '') + '></select>');
},

Expand Down
Loading