From f0fefbb609ad6197e7efaee2f88b87aa9beba4e5 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sat, 2 Aug 2014 22:38:55 -0400 Subject: [PATCH] renamed function name [skip ci] --- framework/assets/yii.validation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/assets/yii.validation.js b/framework/assets/yii.validation.js index 2693451579..0da298e721 100644 --- a/framework/assets/yii.validation.js +++ b/framework/assets/yii.validation.js @@ -70,14 +70,14 @@ yii.validation = (function ($) { }, file: function (attribute, messages, options) { - var files = getFiles(attribute, messages, options); + var files = getUploadedFiles(attribute, messages, options); $.each(files, function (i, file) { validateFile(file, messages, options); }); }, image: function (attribute, messages, options, deferred) { - var files = getFiles(attribute, messages, options); + var files = getUploadedFiles(attribute, messages, options); $.each(files, function (i, file) { validateFile(file, messages, options); @@ -301,7 +301,7 @@ yii.validation = (function ($) { } }; - function getFiles(attribute, messages, options) { + function getUploadedFiles(attribute, messages, options) { var files = $(attribute.input).get(0).files; if (!files) { messages.push(options.message);