From 819b5e31e45a9e47a9ab51b3e1456e26f9b22885 Mon Sep 17 00:00:00 2001 From: Patrick Fust Date: Fri, 26 Feb 2016 11:23:14 +0100 Subject: [PATCH] Title may contain spaces, so replace space with underscore --- dist/dual-list-box.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/dual-list-box.js b/dist/dual-list-box.js index 5fdf03f..5a8ddfd 100644 --- a/dist/dual-list-box.js +++ b/dist/dual-list-box.js @@ -58,7 +58,7 @@ if (item === undefined || item === null) { throw 'DualListBox: ' + i + ' is undefined.'; } }); - options['parent'] = 'dual-list-box-' + options.title; + options['parent'] = 'dual-list-box-' + options.title.replace(/ /g, '_'); options['parentElement'] = '#' + options.parent; selected = $.extend([{}], selected);