Commits

Mark Lavin  committed e240bd0

Change hidden input creation to match hidden selector.

  • Participants
  • Parent commits eb7417b

Comments (0)

Files changed (1)

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

                         $(input).val("");
 		                $(input).data("autocomplete").term = "";
                         if ($(hiddenSelector + '[value=' + ui.item.id + ']').length === 0) {
-                            // TODO: This won't work in IE...
-                            var newInput = $('<input>').attr({
-                                type: 'hidden',
-                                name: hiddenName,
-                                value: ui.item.id,
-                                title: ui.item.value
+                            var newInput = $('<input />', {
+                                'type': 'hidden',
+                                'name': hiddenName,
+                                'value': ui.item.id,
+                                'title': ui.item.value,
+                                'data-selectable-type': 'hidden-multiple'
                             });
                             $(input).after(newInput);
                             $('<li>')