Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
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
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
()
{
$
(
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
)
{
}
else
{
$
(
"#overview_menu"
).
click
();
menu
=
"#faq_menu"
;
}
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 @@
...
@@ -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