-
Couldn't load subscription status.
- Fork 0
Open
Description
md_visibility_attribute/attributes/visibility/form.php
Lines 19 to 41 in 39c971b
| <script type="text/javascript"> | |
| $(function () { | |
| $('input[data-select-and-add=<?=$akID?>]').selectize({ | |
| plugins: ['remove_button'], | |
| valueField: 'id', | |
| labelField: 'label', | |
| searchField: 'label', | |
| options: <?=json_encode($optionGroups)?>, | |
| items: <?=json_encode($visibleGroups)?>, | |
| openOnFocus: true, | |
| create: false, | |
| createFilter: function (input) { | |
| return input.length >= 1; | |
| }, | |
| <?php if ($allowMultiple) { ?> | |
| delimiter: ',', | |
| maxItems: 500, | |
| <?php } else { ?> | |
| maxItems: 1, | |
| <?php } ?> | |
| }); | |
| }); | |
| </script> |
Selectize has been removed in v9. Please update form.php to support v9. Refer to the core select attribute for guidance.
Metadata
Metadata
Assignees
Labels
No labels