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
81143165
Commit
81143165
authored
May 01, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
form wip
parent
4e9dc981
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
28 deletions
+27
-28
assets.php
framework/assets.php
+2
-2
yii-validation.js
framework/assets/yii-validation.js
+0
-16
yii.activeForm.js
framework/assets/yii.activeForm.js
+0
-0
yii.js
framework/assets/yii.js
+19
-5
yii.validation.js
framework/assets/yii.validation.js
+6
-5
No files found.
framework/assets.php
View file @
81143165
...
@@ -17,14 +17,14 @@ return array(
...
@@ -17,14 +17,14 @@ return array(
'yii/validation'
=>
array
(
'yii/validation'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'yii
-
validation.js'
,
'yii
.
validation.js'
,
),
),
'depends'
=>
array
(
'yii'
),
'depends'
=>
array
(
'yii'
),
),
),
'yii/form'
=>
array
(
'yii/form'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
'sourcePath'
=>
__DIR__
.
'/assets'
,
'js'
=>
array
(
'js'
=>
array
(
'yii
-f
orm.js'
,
'yii
.activeF
orm.js'
,
),
),
'depends'
=>
array
(
'yii'
,
'yii/validation'
),
'depends'
=>
array
(
'yii'
,
'yii/validation'
),
),
),
...
...
framework/assets/yii-validation.js
deleted
100644 → 0
View file @
4e9dc981
/**
* Yii form widget.
*
* This is the JavaScript widget used by the yii\widgets\ActiveForm widget.
*
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
!
function
(
$
)
{
}(
window
.
jQuery
);
\ No newline at end of file
framework/assets/yii.activeForm.js
0 → 100644
View file @
81143165
This diff is collapsed.
Click to expand it.
framework/assets/yii.js
View file @
81143165
...
@@ -7,10 +7,24 @@
...
@@ -7,10 +7,24 @@
* @author Qiang Xue <qiang.xue@gmail.com>
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
* @since 2.0
*/
*/
;(
function
(
$
)
{
yii
=
(
function
(
$
)
{
var
pub
=
{
$
.
yii
=
{
version
:
'2.0'
version
:
'2.0'
};
};
return
pub
;
})(
jQuery
);
})(
jQuery
);
jQuery
(
document
).
ready
(
function
(
$
)
{
// call the init() method of every module
var
init
=
function
(
module
)
{
if
(
$
.
isFunction
(
module
.
init
)
&&
(
module
.
trigger
==
undefined
||
$
(
module
.
trigger
).
length
))
{
module
.
init
();
}
$
.
each
(
module
,
function
()
{
if
(
$
.
isPlainObject
(
this
))
{
init
(
this
);
}
});
};
init
(
yii
);
});
framework/assets/yii
-form
.js
→
framework/assets/yii
.validation
.js
View file @
81143165
/**
/**
* Yii
form widget
.
* Yii
validation module
.
*
*
* This is the JavaScript widget used by the yii\widgets\ActiveForm widget.
* This is the JavaScript widget used by the yii\widgets\ActiveForm widget.
*
*
...
@@ -10,6 +10,8 @@
...
@@ -10,6 +10,8 @@
* @since 2.0
* @since 2.0
*/
*/
!
function
(
$
)
{
yii
.
validation
=
(
function
(
$
)
{
var
pub
=
{
}(
window
.
jQuery
);
};
\ No newline at end of file
return
pub
;
})(
jQuery
);
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