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
4e3f7626
Commit
4e3f7626
authored
Oct 24, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced section name alert with a spinner
parent
cf4f1118
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
cms/static/js/base.js
+4
-1
No files found.
cms/static/js/base.js
View file @
4e3f7626
...
...
@@ -734,6 +734,9 @@ function saveEditSectionName(e) {
id
=
$
(
this
).
closest
(
"section.courseware-section"
).
data
(
"id"
);
display_name
=
$
.
trim
(
$
(
this
).
prev
(
'.edit-section-name'
).
val
());
$
(
this
).
closest
(
'.courseware-section .section-name'
).
append
(
$spinner
);
$spinner
.
show
();
if
(
display_name
==
''
)
{
alert
(
"You must specify a name before saving."
)
return
;
...
...
@@ -749,7 +752,7 @@ function saveEditSectionName(e) {
data
:
JSON
.
stringify
({
'id'
:
id
,
'metadata'
:
{
'display_name'
:
display_name
},
'data'
:
null
,
'children'
:
null
})
}).
success
(
function
()
{
alert
(
'Your changes have been saved.'
);
$spinner
.
delay
(
250
).
fadeOut
(
250
);
$_this
.
parent
().
siblings
(
'span.section-name-span'
).
html
(
display_name
);
$_this
.
parent
().
siblings
(
'span.section-name-span'
).
show
();
$_this
.
parent
().
hide
();
...
...
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