Commits

Anonymous committed b561bde

Small fix to allow item.id to contain spaces.

Comments (0)

Files changed (1)

selectable/static/selectable/js/jquery.dj.selectable.js

                 if (self.allowMultiple) {
                     $(input).val("");
                     $(input).data("autocomplete").term = "";
-                    if ($(self.hiddenMultipleSelector + '[value=' + item.id + ']').length === 0) {
+                    if ($(self.hiddenMultipleSelector + '[value="' + item.id + '"]').length === 0) {
                         var newInput = $('<input />', {
                             'type': 'hidden',
                             'name': self.hiddenName,