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
9bed0338
Commit
9bed0338
authored
Aug 18, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gii: minor JS fixes
parent
b70fceb6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
gii.js
framework/yii/gii/assets/gii.js
+4
-4
No files found.
framework/yii/gii/assets/gii.js
View file @
9bed0338
...
...
@@ -16,14 +16,14 @@ yii.gii = (function ($) {
var
initStickyInputs
=
function
()
{
$
(
'.sticky:not(.error) input,select,textarea'
).
each
(
function
()
{
var
value
;
if
(
this
.
tagName
==
'SELECT'
)
{
if
(
this
.
tagName
==
=
'SELECT'
)
{
value
=
this
.
options
[
this
.
selectedIndex
].
text
;
}
else
if
(
this
.
tagName
==
'TEXTAREA'
)
{
}
else
if
(
this
.
tagName
==
=
'TEXTAREA'
)
{
value
=
$
(
this
).
html
();
}
else
{
value
=
$
(
this
).
val
();
}
if
(
value
==
''
)
{
if
(
value
==
=
''
)
{
value
=
'[empty]'
;
}
$
(
this
).
before
(
'<div class="sticky-value">'
+
value
+
'</div>'
).
hide
();
...
...
@@ -51,7 +51,7 @@ yii.gii = (function ($) {
$modal
.
find
(
'.content'
).
css
(
'max-height'
,
(
$
(
window
).
height
()
-
200
)
+
'px'
);
},
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
$modal
.
find
(
'.modal-body'
).
html
(
'<div class="error">'
+
XMLHttpRequest
.
responseText
+
'</div>'
)
$modal
.
find
(
'.modal-body'
).
html
(
'<div class="error">'
+
XMLHttpRequest
.
responseText
+
'</div>'
)
;
}
});
return
false
;
...
...
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