picklist maxOptions

This commit is contained in:
RB 2024-03-04 17:00:44 +08:00
parent 7a87c05eaf
commit 04cd311600

View file

@ -6,8 +6,8 @@ See LICENSE and COMMERCIAL in the project root for license information.
*/ */
/* eslint-disable no-undef */ /* eslint-disable no-undef */
const isMulti = ['MULTISELECT'].includes($urlp('type')) const isMulti = 'MULTISELECT' === $urlp('type')
const maxOptions = 100 const maxOptions = isMulti ? 32 : 200
$(document).ready(() => { $(document).ready(() => {
const query = `entity=${$urlp('entity')}&field=${$urlp('field')}` const query = `entity=${$urlp('entity')}&field=${$urlp('field')}`