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
fefd3d9b
Commit
fefd3d9b
authored
Dec 03, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #6366
parent
feb1c776
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
gii.js
extensions/gii/assets/gii.js
+11
-11
No files found.
extensions/gii/assets/gii.js
View file @
fefd3d9b
...
@@ -146,17 +146,6 @@ yii.gii = (function ($) {
...
@@ -146,17 +146,6 @@ yii.gii = (function ($) {
initConfirmationCheckboxes
();
initConfirmationCheckboxes
();
initToggleActions
();
initToggleActions
();
// hide message category when I18N is disabled
$
(
'form #generator-enablei18n'
).
change
(
function
()
{
$
(
'form .field-generator-messagecategory'
).
toggle
(
$
(
this
).
is
(
':checked'
));
}).
change
();
// hide Generate button if any input is changed
$
(
'.default-view .form-group input,select,textarea'
).
change
(
function
()
{
$
(
'.default-view-results,.default-view-files'
).
hide
();
$
(
'.default-view button[name="generate"]'
).
hide
();
});
// model generator: hide class name input when table name input contains *
// model generator: hide class name input when table name input contains *
$
(
'#model-generator #generator-tablename'
).
change
(
function
()
{
$
(
'#model-generator #generator-tablename'
).
change
(
function
()
{
$
(
'.field-generator-modelclass'
).
toggle
(
$
(
this
).
val
().
indexOf
(
'*'
)
==
-
1
);
$
(
'.field-generator-modelclass'
).
toggle
(
$
(
this
).
val
().
indexOf
(
'*'
)
==
-
1
);
...
@@ -175,6 +164,17 @@ yii.gii = (function ($) {
...
@@ -175,6 +164,17 @@ yii.gii = (function ($) {
}
}
});
});
// hide message category when I18N is disabled
$
(
'form #generator-enablei18n'
).
change
(
function
()
{
$
(
'form .field-generator-messagecategory'
).
toggle
(
$
(
this
).
is
(
':checked'
));
}).
change
();
// hide Generate button if any input is changed
$
(
'.default-view .form-group input,select,textarea'
).
change
(
function
()
{
$
(
'.default-view-results,.default-view-files'
).
hide
();
$
(
'.default-view button[name="generate"]'
).
hide
();
});
$
(
'.module-form #generator-moduleclass'
).
change
(
function
()
{
$
(
'.module-form #generator-moduleclass'
).
change
(
function
()
{
var
value
=
$
(
this
).
val
().
match
(
/
(\w
+
)\\\w
+$/
);
var
value
=
$
(
this
).
val
().
match
(
/
(\w
+
)\\\w
+$/
);
var
$idInput
=
$
(
'#generator-moduleid'
);
var
$idInput
=
$
(
'#generator-moduleid'
);
...
...
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