Remove form limits in dev mode

This commit is contained in:
yflory 2023-12-12 15:58:12 +01:00
parent 56d29ba505
commit 3a5b66e5d9
1 changed files with 8 additions and 1 deletions

View File

@ -99,7 +99,8 @@ define([
// we'll consider increasing this restriction if people are unhappy with it
// but as a general rule we expect users will appreciate having simpler questions
var MAX_OPTIONS = 25;
var MAX_ITEMS = 10;
var MAX_ITEMS = 25;
var getOptionValue = function (obj) {
if (!Util.isObject(obj)) { return obj; }
@ -4484,6 +4485,12 @@ define([
APP.isEditor = Boolean(priv.form_public);
var $body = $('body');
if (priv.devMode) {
MAX_OPTIONS = 10000;
MAX_ITEMS = 10000;
}
var $toolbarContainer = $('#cp-toolbar');
var helpMenu = framework._.sfCommon.createHelpMenu(['text', 'pad']);