fix taxonomy field to save as array

This commit is contained in:
Gert
2015-05-13 15:17:02 +02:00
parent ed0b5d7df2
commit 0f8c3b36ac
3 changed files with 23 additions and 8 deletions

View File

@@ -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({