forked from Wavyzz/dolibarr
Fix js warning
This commit is contained in:
@@ -9091,7 +9091,7 @@ class Form
|
||||
},
|
||||
cache: true
|
||||
},
|
||||
language: select2arrayoflanguage || \'en\',
|
||||
language: (typeof select2arrayoflanguage === \'undefined\') ? \'en\' : select2arrayoflanguage,
|
||||
containerCssClass: \':all:\', /* Line to add class from the original SELECT propagated to the new <span class="select2-selection...> tag */
|
||||
placeholder: \'' . dol_escape_js($placeholder) . '\',
|
||||
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
||||
@@ -9181,7 +9181,7 @@ class Form
|
||||
|
||||
$(\'.' . dol_escape_js($htmlname) . '\').select2({
|
||||
data: data,
|
||||
language: select2arrayoflanguage || \'en\',
|
||||
language: (typeof select2arrayoflanguage === \'undefined\') ? \'en\' : select2arrayoflanguage,
|
||||
containerCssClass: \':all:\', /* Line to add class from the original SELECT propagated to the new <span class="select2-selection...> tag */
|
||||
placeholder: \'' . dol_escape_js($placeholder) . '\',
|
||||
escapeMarkup: function (markup) { return markup; }, // let our custom formatter work
|
||||
@@ -9375,7 +9375,7 @@ class Form
|
||||
// Specify format function for selected item
|
||||
formatSelection: formatSelection,
|
||||
templateSelection: formatSelection, /* For 4.0 */
|
||||
language: select2arrayoflanguage || \'en\'
|
||||
language: (typeof select2arrayoflanguage === \'undefined\') ? \'en\' : select2arrayoflanguage
|
||||
});
|
||||
|
||||
/* Add also morecss to the css .select2 that is after the #htmlname, for component that are show dynamically after load, because select2 set
|
||||
|
||||
@@ -1375,7 +1375,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($canvasdisplayactio
|
||||
placeholder: "' . $langs->trans('Name of the new third party. In the meantime we check if it already exists...') . '",
|
||||
allowClear: true,
|
||||
minimumInputLength: 3,
|
||||
language: select2arrayoflanguage,
|
||||
language: (typeof select2arrayoflanguage === \'undefined\') ? \'en\' : select2arrayoflanguage,
|
||||
containerCssClass: ":all:",
|
||||
selectionCssClass: ":all:",
|
||||
tags: true,
|
||||
|
||||
Reference in New Issue
Block a user