Skip to content

Commit

Permalink
fix(actorsfield): missed function rename
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Jan 20, 2021
1 parent 7645f63 commit 8d26857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/scripts.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ function pluginFormcreatorInitializeField(fieldName, rand) {
*/
function pluginFormcreatorInitializeActor(fieldName, rand, initialValue) {
var field = $('[name="' + fieldName + '[]"]');
var dropdownMax = <?php echo $CFG_GLPI['dropdown_max'] ?>;
var dropdownMax = CFG_GLPI['dropdown_max'];
field.select2({
width: '80%',
minimumInputLength: 0,
Expand Down Expand Up @@ -1481,7 +1481,7 @@ function pluginFormcreatorInitializeActor(fieldName, rand, initialValue) {
function pluginFormcreatorInitializeActor2(fieldName, rand) {
var field = $('select[name="' + fieldName + '[]"]');
field.on("change", function(e) {
formcreatorShowFields($(field[0].form));
plugin_formcreator.showFields($(field[0].form));
});
}

Expand Down

0 comments on commit 8d26857

Please sign in to comment.