Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mdmaug
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
20
Issues
20
List
Boards
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
csirt
mdmaug
Commits
197e6772
Commit
197e6772
authored
Feb 25, 2016
by
Edvard Rejthar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI: Alt+ sipky pohybuji mezi hlasováním
parent
6548040a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
mdmaug/static/mdmaug-analysis.js
mdmaug/static/mdmaug-analysis.js
+15
-1
No files found.
mdmaug/static/mdmaug-analysis.js
View file @
197e6772
...
@@ -21,7 +21,7 @@ if (document.location.href.indexOf("https://mdm.labs.nic.cz/detail/") === 0) {
...
@@ -21,7 +21,7 @@ if (document.location.href.indexOf("https://mdm.labs.nic.cz/detail/") === 0) {
$
(
"
div#detail_tabs ul
"
).
prepend
(
"
<li class='ui-state-default ui-corner-top'><a href='#analysisWrapper'>Analýza <span id='analysis-info'></span></a></li>
"
);
$
(
"
div#detail_tabs ul
"
).
prepend
(
"
<li class='ui-state-default ui-corner-top'><a href='#analysisWrapper'>Analýza <span id='analysis-info'></span></a></li>
"
);
$
(
"
div#detail_tabs
"
).
append
(
$
(
"
<div />
"
,
{
id
:
'
analysisWrapper
'
,
class
:
'
ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide
'
}));
$
(
"
div#detail_tabs
"
).
append
(
$
(
"
<div />
"
,
{
id
:
'
analysisWrapper
'
,
class
:
'
ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide
'
}));
$
(
"
div#detail_tabs
"
).
tabs
(
"
refresh
"
);
$
(
"
div#detail_tabs
"
).
tabs
(
"
refresh
"
);
$
(
"
<h1>MDMaug analýza</h1>
"
).
prependTo
(
"
#analysisWrapper
"
);
$
(
"
<h1>MDMaug analýza</h1>
<p>(Alt+↕ pohybuje mezi hlasováním)</p>
"
).
prependTo
(
"
#analysisWrapper
"
);
//jQueryUI=1.8 $("div#detail_tabs").tabs().tabs('add','#analysisWrapper','Analýza');
//jQueryUI=1.8 $("div#detail_tabs").tabs().tabs('add','#analysisWrapper','Analýza');
//sessionStorage.clear();
//sessionStorage.clear();
...
@@ -482,6 +482,20 @@ if (document.location.href.indexOf("https://mdm.labs.nic.cz/detail/") === 0) {
...
@@ -482,6 +482,20 @@ if (document.location.href.indexOf("https://mdm.labs.nic.cz/detail/") === 0) {
//hotkeys pro ovladani tabu
//hotkeys pro ovladani tabu
$
(
'
body
'
).
keydown
(
function
(
e
)
{
$
(
'
body
'
).
keydown
(
function
(
e
)
{
if
(
e
.
altKey
)
{
if
(
e
.
altKey
)
{
if
(
KEY
.
DOWN
==
e
.
keyCode
)
{
if
(
$
(
"
:focus
"
).
closest
(
"
.web
"
).
length
){
$
(
"
input:checked
"
,
$
(
$
(
"
:focus
"
).
closest
(
"
.web
"
)).
next
(
"
.web
"
)).
focus
();
}
else
{
$
(
"
.web input:checked:first
"
).
focus
();
}
}
if
(
KEY
.
UP
==
e
.
keyCode
)
{
if
(
$
(
"
:focus
"
).
closest
(
"
.web
"
).
length
){
$
(
"
input:checked
"
,
$
(
$
(
"
:focus
"
).
closest
(
"
.web
"
)).
prev
(
"
.web
"
)).
focus
();
}
else
{
$
(
"
.web input:checked:first
"
).
focus
();
}
}
if
(
KEY
.
N1
<=
e
.
keyCode
&&
e
.
keyCode
<=
KEY
.
N6
)
{
if
(
KEY
.
N1
<=
e
.
keyCode
&&
e
.
keyCode
<=
KEY
.
N6
)
{
$
(
'
#detail_tabs
'
).
tabs
(
'
option
'
,
'
active
'
,
e
.
keyCode
-
KEY
.
N1
);
$
(
'
#detail_tabs
'
).
tabs
(
'
option
'
,
'
active
'
,
e
.
keyCode
-
KEY
.
N1
);
e
.
preventDefault
();
e
.
preventDefault
();
...
...
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