Multi select dropdown in plugin settings?
-
This plugin works for me:
Settings.registerPlugin({ Settings: {}, types: ['selectMultiple'], use: function () { Settings = this; }, set: function (element, value) { if (value.constructor === Array) { for (var val in value) { element.find('option[value=val]').attr("selected",true); } } }, get: function (element, trim, empty) { var value = []; element.find('option:selected').each(function () { value.push($(this).val()); }); return value; } });
With data-type="selectMultiple" added to the select tag.
-
You may need to clear cache?
fixed #2657 -- there's a slight chance this might break other ACP pag… · NodeBB/NodeBB@d096a63
Node.js based forum software built for the modern web - fixed #2657 -- there's a slight chance this might break other ACP pag… · NodeBB/NodeBB@d096a63
GitHub (github.com)
Copyright © 2024 NodeBB | Contributors