Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
modal_page
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
modal_page
Merge requests
!5
Resolve
#3202820
"508 issues lost"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Resolve
#3202820
"508 issues lost"
issue/modal_page-3202820:3202820-508-issues-lost
into
4.0.x
Overview
0
Commits
3
Pipelines
0
Changes
2
Open
Stephen Mustgrave
requested to merge
issue/modal_page-3202820:3202820-508-issues-lost
into
4.0.x
4 years ago
Overview
0
Commits
3
Pipelines
0
Changes
2
Expand
Closes
#3202820
0
0
Merge request reports
Compare
4.0.x
4.0.x (base)
and
latest version
latest version
ef54a0d4
3 commits,
4 years ago
2 files
+
44
−
25
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
js/modal-page.js
+
19
−
0
Options
@@ -51,6 +51,25 @@
auto_open
=
modal
.
data
(
"
auto-open
"
);
}
modal
.
on
(
'
shown.bs.modal
'
,
function
()
{
$
(
this
).
find
(
"
.js-modal-page-ok-buttom
"
).
first
().
focus
();
});
modal
.
on
(
'
keydown
'
,
function
(
e
)
{
var
keyCode
=
e
.
keyCode
||
e
.
which
;
var
lastElement
=
$
(
this
).
find
(
'
.js-modal-page-ok-buttom
'
).
last
().
is
(
'
:focus
'
);
var
firstElement
=
$
(
this
).
find
(
"
.js-modal-page-ok-buttom
"
).
first
().
is
(
'
:focus
'
);
if
(
keyCode
===
9
&&
!
e
.
shiftKey
&&
lastElement
)
{
e
.
preventDefault
();
$
(
this
).
find
(
"
.js-modal-page-ok-buttom
"
).
first
().
focus
();
}
else
if
(
keyCode
===
9
&&
e
.
shiftKey
&&
firstElement
)
{
e
.
preventDefault
();
$
(
this
).
find
(
"
.js-modal-page-ok-buttom
"
).
last
().
focus
();
}
});
// Open Modal on Auto Open.
if
(
auto_open
==
true
)
{
Loading