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
275826d4
Commit
275826d4
authored
Apr 05, 2013
by
Brian Talbot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
studio - resolving help sock PR comments
parent
9ab5710a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
cms/static/js/base.js
+15
-15
No files found.
cms/static/js/base.js
View file @
275826d4
...
@@ -161,7 +161,7 @@ function smoothScrollLink(e) {
...
@@ -161,7 +161,7 @@ function smoothScrollLink(e) {
easing
:
'swing'
,
easing
:
'swing'
,
speed
:
1000
,
speed
:
1000
,
scrollElement
:
null
,
scrollElement
:
null
,
scrollTarget
:
$
(
this
).
attr
(
'href'
)
,
scrollTarget
:
$
(
this
).
attr
(
'href'
)
});
});
}
}
...
@@ -459,30 +459,30 @@ function onKeyUp(e) {
...
@@ -459,30 +459,30 @@ function onKeyUp(e) {
}
}
function toggleSock(e) {
function toggleSock(e) {
e.preventDefault();
e.preventDefault();
var $btnLabel = $(this).find('
.
copy
');
var $btnLabel = $(this).find('
.
copy
');
var $sock = $('
.
wrapper
-
sock
');
var $sock = $('
.
wrapper
-
sock
');
var $sockContent = $sock.find('
.
wrapper
-
inner
');
var $sockContent = $sock.find('
.
wrapper
-
inner
');
$sock.toggleClass('
is
-
shown
');
$sock.toggleClass('
is
-
shown
');
$sockContent.toggle('
fast
');
$sockContent.toggle('
fast
');
$.smoothScroll({
$.smoothScroll({
offset: -200,
offset: -200,
easing: '
swing
',
easing: '
swing
',
speed: 1000,
speed: 1000,
scrollElement: null,
scrollElement: null,
scrollTarget: $sock
scrollTarget: $sock
});
});
if($sock.hasClass('
is
-
shown
')) {
if($sock.hasClass('
is
-
shown
')) {
$btnLabel.text('
Hide
Studio
Help
');
$btnLabel.text('
Hide
Studio
Help
');
}
}
else {
else {
$btnLabel.text('
Looking
for
Help
with
Studio
?
');
$btnLabel.text('
Looking
for
Help
with
Studio
?
');
}
}
}
}
function toggleSubmodules(e) {
function toggleSubmodules(e) {
...
...
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