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
5b648c99
Commit
5b648c99
authored
Mar 05, 2014
by
Thiago Talma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keyboard shortcut for previous, next and refresh buttons
parent
993963bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
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/assets/gii.js
View file @
5b648c99
...
...
@@ -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 @
5b648c99
...
...
@@ -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=
"Shortcut: Left Arrow Key"
><span
class=
"glyphicon glyphicon-arrow-left"
></span></a>
<a
class=
"modal-next btn btn-xs btn-default"
href=
"#"
title=
"Shortcut: Right Arrow Key"
><span
class=
"glyphicon glyphicon-arrow-right"
></span></a>
<a
class=
"modal-refresh btn btn-xs btn-default"
href=
"#"
title=
"Shortcut: R Key"
><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