mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-16 18:26:06 +01:00
fix taxonomy field to save as array
This commit is contained in:
@@ -6,8 +6,20 @@ $(function () {
|
||||
};
|
||||
|
||||
// selectize
|
||||
$('select.fancy').selectize({
|
||||
createOnBlur: true
|
||||
$('select.fancy:not(.create)').selectize({
|
||||
createOnBlur: true,
|
||||
});
|
||||
|
||||
// selectize with create
|
||||
$('select.fancy.create').selectize({
|
||||
createOnBlur: true,
|
||||
persist: false,
|
||||
create: function (input) {
|
||||
return {
|
||||
value: input,
|
||||
text: input
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('input.fancy').selectize({
|
||||
|
||||
Reference in New Issue
Block a user