Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
f0fefbb6
Commit
f0fefbb6
authored
Aug 02, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renamed function name [skip ci]
parent
6dd2203a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
yii.validation.js
framework/assets/yii.validation.js
+3
-3
No files found.
framework/assets/yii.validation.js
View file @
f0fefbb6
...
@@ -70,14 +70,14 @@ yii.validation = (function ($) {
...
@@ -70,14 +70,14 @@ yii.validation = (function ($) {
},
},
file
:
function
(
attribute
,
messages
,
options
)
{
file
:
function
(
attribute
,
messages
,
options
)
{
var
files
=
getFiles
(
attribute
,
messages
,
options
);
var
files
=
get
Uploaded
Files
(
attribute
,
messages
,
options
);
$
.
each
(
files
,
function
(
i
,
file
)
{
$
.
each
(
files
,
function
(
i
,
file
)
{
validateFile
(
file
,
messages
,
options
);
validateFile
(
file
,
messages
,
options
);
});
});
},
},
image
:
function
(
attribute
,
messages
,
options
,
deferred
)
{
image
:
function
(
attribute
,
messages
,
options
,
deferred
)
{
var
files
=
getFiles
(
attribute
,
messages
,
options
);
var
files
=
get
Uploaded
Files
(
attribute
,
messages
,
options
);
$
.
each
(
files
,
function
(
i
,
file
)
{
$
.
each
(
files
,
function
(
i
,
file
)
{
validateFile
(
file
,
messages
,
options
);
validateFile
(
file
,
messages
,
options
);
...
@@ -301,7 +301,7 @@ yii.validation = (function ($) {
...
@@ -301,7 +301,7 @@ yii.validation = (function ($) {
}
}
};
};
function
getFiles
(
attribute
,
messages
,
options
)
{
function
get
Uploaded
Files
(
attribute
,
messages
,
options
)
{
var
files
=
$
(
attribute
.
input
).
get
(
0
).
files
;
var
files
=
$
(
attribute
.
input
).
get
(
0
).
files
;
if
(
!
files
)
{
if
(
!
files
)
{
messages
.
push
(
options
.
message
);
messages
.
push
(
options
.
message
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment