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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
87f58e48
Commit
87f58e48
authored
Aug 02, 2014
by
Tomek Romik
Committed by
Qiang Xue
Aug 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Abort further validation if there are no files to validate
parent
8c5c4c50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
yii.validation.js
framework/assets/yii.validation.js
+6
-5
No files found.
framework/assets/yii.validation.js
View file @
87f58e48
...
@@ -73,13 +73,14 @@ yii.validation = (function ($) {
...
@@ -73,13 +73,14 @@ yii.validation = (function ($) {
if
(
options
.
message
&&
!
files
)
{
if
(
options
.
message
&&
!
files
)
{
pub
.
addMessage
(
messages
,
options
.
message
);
pub
.
addMessage
(
messages
,
options
.
message
);
}
}
if
(
!
options
.
skipOnEmpty
&&
files
.
length
===
0
)
{
if
(
files
.
length
===
0
)
{
pub
.
addMessage
(
messages
,
options
.
uploadRequired
);
if
(
!
options
.
skipOnEmpty
)
{
}
else
if
(
files
.
length
===
0
)
{
pub
.
addMessage
(
messages
,
options
.
uploadRequired
);
}
return
false
;
return
false
;
}
}
if
(
options
.
maxFiles
&&
options
.
maxFiles
<
files
.
length
)
{
if
(
options
.
maxFiles
&&
options
.
maxFiles
<
files
.
length
)
{
pub
.
addMessage
(
messages
,
options
.
tooMany
);
pub
.
addMessage
(
messages
,
options
.
tooMany
);
}
}
...
...
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