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
f4c6bd1b
Commit
f4c6bd1b
authored
Feb 05, 2014
by
Adam Palay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "If unit display name is non-empty string, change it to a defaul (STUD-1284)"
This reverts commit
b8da1c5b
.
parent
b8da1c5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
cms/static/coffee/src/views/unit.coffee
+1
-7
No files found.
cms/static/coffee/src/views/unit.coffee
View file @
f4c6bd1b
...
...
@@ -271,10 +271,7 @@ define ["jquery", "jquery.ui", "gettext", "backbone",
@
$spinner
=
$
(
'<span class="spinner-in-field-icon"></span>'
);
render
:
=>
display_name
=
@
model
.
get
(
'metadata'
).
display_name
if
not
display_name
:
display_name
=
gettext
'[Untitled]'
@
$
(
'.unit-display-name-input'
).
val
(
display_name
)
@
$
(
'.unit-display-name-input'
).
val
(
@
model
.
get
(
'metadata'
).
display_name
)
setEnabled
:
=>
disabled
=
@
model
.
get
(
'state'
)
==
'public'
...
...
@@ -288,9 +285,6 @@ define ["jquery", "jquery.ui", "gettext", "backbone",
metadata
=
$
.
extend
({},
@
model
.
get
(
'metadata'
))
metadata
.
display_name
=
@
$
(
'.unit-display-name-input'
).
val
()
@
model
.
save
(
metadata
:
metadata
)
display_name
=
metadata
.
display_name
if
not
display_name
:
display_name
=
gettext
'[Untitled]'
# Update name shown in the right-hand side location summary.
$
(
'.unit-location .editing .unit-name'
).
html
(
metadata
.
display_name
)
analytics
.
track
"Edited Unit Name"
,
...
...
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