From f157245511d914b5211c45bb77ae5ce55ceaf6d2 Mon Sep 17 00:00:00 2001 From: Lenon Marcel Date: Wed, 4 Feb 2015 05:43:48 -0200 Subject: [PATCH] Fix for MaximumInputLength. I18n translations expect a "maximum" argument for inputTooLong message, but MaximumInputLength is passing "minimum". This renames "minimum" to "maximum" to fix this problem. --- src/js/select2/data/maximumInputLength.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/select2/data/maximumInputLength.js b/src/js/select2/data/maximumInputLength.js index 4316c3fe..f303ba88 100644 --- a/src/js/select2/data/maximumInputLength.js +++ b/src/js/select2/data/maximumInputLength.js @@ -15,7 +15,7 @@ define([ this.trigger('results:message', { message: 'inputTooLong', args: { - minimum: this.maximumInputLength, + maximum: this.maximumInputLength, input: params.term, params: params }