Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
8a4047d5
Commit
8a4047d5
authored
Mar 26, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - added smoothscroll to top of view and wired footer tender widget link
parent
7c68508b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
2 deletions
+20
-2
cms/static/js/base.js
+15
-0
cms/templates/widgets/footer.html
+4
-0
cms/templates/widgets/header.html
+1
-1
cms/templates/widgets/tender.html
+0
-1
No files found.
cms/static/js/base.js
View file @
8a4047d5
...
...
@@ -83,6 +83,9 @@ $(document).ready(function () {
// general link management - smooth scrolling page links
$
(
'a[rel*="view"]'
).
bind
(
'click'
,
linkSmoothScroll
);
// tender feedback window scrolling
$
(
'a.show-tender'
).
bind
(
'click'
,
linkSmoothScrollTop
);
// toggling overview section details
$
(
function
()
{
...
...
@@ -160,6 +163,18 @@ function linkSmoothScroll(e) {
});
}
function
linkSmoothScrollTop
(
e
)
{
(
e
).
preventDefault
();
$
.
smoothScroll
({
offset
:
-
200
,
easing
:
'swing'
,
speed
:
1000
,
scrollElement
:
null
,
scrollTarget
:
$
(
'#view-top'
)
});
}
function
linkNewWindow
(
e
)
{
window
.
open
(
$
(
e
.
target
).
attr
(
'href'
));
e
.
preventDefault
();
...
...
cms/templates/widgets/footer.html
View file @
8a4047d5
...
...
@@ -14,9 +14,13 @@
<li class="nav-item nav-peripheral-pp">
<a href="#">Privacy Policy</a>
</li> -->
<li
class=
"nav-item nav-peripheral-help"
>
<a
href=
"http://help.edge.edx.org/"
rel=
"external"
>
edX Studio Help
</a>
</li>
<li
class=
"nav-item nav-peripheral-feedback"
>
<a
class=
"show-tender"
href=
"http://help.edge.edx.org/discussion/new"
title=
"Use our feedback tool, Tender, to share your feedback"
>
Provide Feedback
</a>
</li>
<li
class=
"nav-item nav-peripheral-contact"
>
<a
href=
"https://www.edx.org/contact"
rel=
"external"
>
Contact edX
</a>
</li>
...
...
cms/templates/widgets/header.html
View file @
8a4047d5
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<div
class=
"wrapper-header wrapper"
>
<div
class=
"wrapper-header wrapper"
id=
"view-top"
>
<header
class=
"primary"
role=
"banner"
>
<div
class=
"wrapper wrapper-left "
>
...
...
cms/templates/widgets/tender.html
View file @
8a4047d5
% if user.is_authenticated():
<a
class=
"show-tender"
href=
"http://help.edge.edx.org/discussion/new"
title=
"Use our feedback tool, Tender, to share your feedback"
>
Provide Feedback
</a>
<script
type=
"text/javascript"
>
Tender
=
{
...
...
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