Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e76ab3f5
authored
May 20, 2015
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix TypeError in help.js
parent
11ddfd1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
circle/dashboard/static/dashboard/help.js
+9
-9
circle/templates/info/help.html
+2
-2
No files found.
circle/dashboard/static/dashboard/help.js
View file @
e76ab3f5
$
(
function
()
{
$
(
'.crosslink'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
...
...
@@ -9,14 +8,15 @@ $(function() {
var
hash
=
window
.
location
.
hash
;
if
(
hash
)
{
var
menu
;
if
(
$
(
hash
).
closest
(
".tab-pane"
).
prop
(
"class"
).
indexOf
(
"overview"
)
!=
-
1
)
{
menu
=
"#overview_menu"
;
}
else
{
menu
=
"#faq_menu"
;
var
pane
=
$
(
hash
).
closest
(
".tab-pane"
).
prop
(
"class"
);
if
(
pane
)
{
if
(
pane
.
indexOf
(
"overview"
)
!=
-
1
)
{
$
(
"#overview_menu"
).
click
();
}
else
{
$
(
"#faq_menu"
).
click
();
}
$
(
"html, body"
).
animate
({
scrollTop
:
$
(
hash
).
offset
().
top
},
500
);
window
.
location
.
hash
=
hash
;
}
$
(
menu
).
click
();
$
(
"html, body"
).
animate
({
scrollTop
:
$
(
hash
).
offset
().
top
},
500
);
window
.
location
.
hash
=
hash
;
}
});
circle/templates/info/help.html
View file @
e76ab3f5
...
...
@@ -24,14 +24,14 @@
<div
class=
"content"
>
<ul
class=
"help-tabs nav nav-tabs"
>
<li
class=
"active"
>
<a
id=
"faq_menu"
href=
"#"
data-toggle=
"pill"
data-target=
"._faq"
class=
"text-center"
>
<a
id=
"faq_menu"
href=
"#
faq
"
data-toggle=
"pill"
data-target=
"._faq"
class=
"text-center"
>
<i
class=
"fa fa-comments-o fa-2x"
></i>
<br>
{% trans "FAQ" %}
</a>
</li>
<li>
<a
id=
"overview_menu"
href=
"#"
data-toggle=
"pill"
data-target=
"._overview"
class=
"text-center"
>
<a
id=
"overview_menu"
href=
"#
overview
"
data-toggle=
"pill"
data-target=
"._overview"
class=
"text-center"
>
<i
class=
"fa fa-book fa-2x"
></i><br>
{% trans "Overview" %}
</a>
</li>
...
...
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