Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
circle/dashboard/static/dashboard/help.js
+6
-6
circle/templates/info/help.html
+2
-2
No files found.
circle/dashboard/static/dashboard/help.js
View file @
e76ab3f5
$
(
function
()
{
$
(
function
()
{
$
(
'.crosslink'
).
click
(
function
(
e
)
{
$
(
'.crosslink'
).
click
(
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -9,14 +8,15 @@ $(function() {
...
@@ -9,14 +8,15 @@ $(function() {
var
hash
=
window
.
location
.
hash
;
var
hash
=
window
.
location
.
hash
;
if
(
hash
)
{
if
(
hash
)
{
var
menu
;
var
pane
=
$
(
hash
).
closest
(
".tab-pane"
).
prop
(
"class"
);
if
(
$
(
hash
).
closest
(
".tab-pane"
).
prop
(
"class"
).
indexOf
(
"overview"
)
!=
-
1
)
{
if
(
pane
)
{
menu
=
"#overview_menu"
;
if
(
pane
.
indexOf
(
"overview"
)
!=
-
1
)
{
$
(
"#overview_menu"
).
click
();
}
else
{
}
else
{
menu
=
"#faq_menu"
;
$
(
"#faq_menu"
).
click
()
;
}
}
$
(
menu
).
click
();
$
(
"html, body"
).
animate
({
scrollTop
:
$
(
hash
).
offset
().
top
},
500
);
$
(
"html, body"
).
animate
({
scrollTop
:
$
(
hash
).
offset
().
top
},
500
);
window
.
location
.
hash
=
hash
;
window
.
location
.
hash
=
hash
;
}
}
}
});
});
circle/templates/info/help.html
View file @
e76ab3f5
...
@@ -24,14 +24,14 @@
...
@@ -24,14 +24,14 @@
<div
class=
"content"
>
<div
class=
"content"
>
<ul
class=
"help-tabs nav nav-tabs"
>
<ul
class=
"help-tabs nav nav-tabs"
>
<li
class=
"active"
>
<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>
<i
class=
"fa fa-comments-o fa-2x"
></i>
<br>
<br>
{% trans "FAQ" %}
{% trans "FAQ" %}
</a>
</a>
</li>
</li>
<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>
<i
class=
"fa fa-book fa-2x"
></i><br>
{% trans "Overview" %}
</a>
{% trans "Overview" %}
</a>
</li>
</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