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
7bc181ce
Commit
7bc181ce
authored
Mar 05, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2633 from thiagotalma/master
Keyboard shortcut for previous, next and refresh buttons
parents
8df35f76
bd067b02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
CHANGELOG.md
extensions/gii/CHANGELOG.md
+1
-0
gii.js
extensions/gii/assets/gii.js
+10
-0
files.php
extensions/gii/views/default/view/files.php
+3
-3
No files found.
extensions/gii/CHANGELOG.md
View file @
7bc181ce
...
...
@@ -14,6 +14,7 @@ Yii Framework 2 gii extension Change Log
-
Enh #2327: better visual representation of changed files, added header and refresh button to diff modal (thiagotalma)
-
Enh #2491: Added support for using the same base class name of search model and data model in Gii (qiangxue)
-
Enh #2595: Browse through all generated files using right and left arrows (thiagotalma)
-
Enh #2633: Keyboard shortcuts to browse through files (thiagotalma)
2.
0.0 alpha, December 1, 2013
-----------------------------
...
...
extensions/gii/assets/gii.js
View file @
7bc181ce
...
...
@@ -69,6 +69,16 @@ yii.gii = (function ($) {
});
return
false
;
});
$
(
'#preview-modal'
).
on
(
'keydown'
,
function
(
e
)
{
if
(
e
.
keyCode
===
37
)
{
$
(
'.modal-previous'
).
trigger
(
'click'
);
}
else
if
(
e
.
keyCode
===
39
)
{
$
(
'.modal-next'
).
trigger
(
'click'
);
}
else
if
(
e
.
keyCode
===
82
)
{
$
(
'.modal-refresh'
).
trigger
(
'click'
);
}
});
};
var
initConfirmationCheckboxes
=
function
()
{
...
...
extensions/gii/views/default/view/files.php
View file @
7bc181ce
...
...
@@ -82,9 +82,9 @@ use yii\gii\CodeFile;
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<div
class=
"btn-group pull-left"
>
<a
class=
"modal-previous btn btn-xs btn-default"
href=
"#"
><span
class=
"glyphicon glyphicon-arrow-left"
></span></a>
<a
class=
"modal-next btn btn-xs btn-default"
href=
"#"
><span
class=
"glyphicon glyphicon-arrow-right"
></span></a>
<a
class=
"modal-refresh btn btn-xs btn-default"
href=
"#"
><span
class=
"glyphicon glyphicon-refresh"
></span></a>
<a
class=
"modal-previous btn btn-xs btn-default"
href=
"#"
title=
"Previous File (Left Arrow)"
><span
class=
"glyphicon glyphicon-arrow-left"
></span></a>
<a
class=
"modal-next btn btn-xs btn-default"
href=
"#"
title=
"Next File (Right Arrow)"
><span
class=
"glyphicon glyphicon-arrow-right"
></span></a>
<a
class=
"modal-refresh btn btn-xs btn-default"
href=
"#"
title=
"Refresh File (R)"
><span
class=
"glyphicon glyphicon-refresh"
></span></a>
</div>
<strong
class=
"modal-title pull-left"
>
Modal title
</strong>
...
...
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