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
3a2c97a0
Commit
3a2c97a0
authored
Sep 21, 2015
by
asadiqbal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SOL-1188 fix
parent
58488eaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
cms/static/js/certificates/models/certificate.js
+4
-0
cms/static/js/certificates/views/signatory_details.js
+0
-1
No files found.
cms/static/js/certificates/models/certificate.js
View file @
3a2c97a0
...
...
@@ -62,6 +62,10 @@ function (_, str, Backbone, BackboneRelational, BackboneAssociations, gettext, C
// Remember the current state of this model (enables edit->cancel use cases)
this
.
_originalAttributes
=
this
.
parse
(
this
.
toJSON
());
this
.
get
(
"signatories"
).
each
(
function
(
modelSignatory
)
{
modelSignatory
.
setOriginalAttributes
();
});
// If no url is defined for the signatories child collection we'll need to create that here as well
if
(
!
this
.
isNew
()
&&
!
this
.
get
(
'signatories'
).
url
)
{
this
.
get
(
'signatories'
).
url
=
this
.
collection
.
url
+
'/'
+
this
.
get
(
'id'
)
+
'/signatories'
;
...
...
cms/static/js/certificates/views/signatory_details.js
View file @
3a2c97a0
...
...
@@ -73,7 +73,6 @@ function ($, _, str, Backbone, gettext, TemplateUtils, ViewUtils, BaseView, Sign
actionableModel
.
save
({},
{
success
:
function
()
{
actionableModel
.
setOriginalAttributes
();
self
.
model
.
setOriginalAttributes
();
dfd
.
resolve
();
self
.
closeSignatoryEditView
();
}.
bind
(
this
)
...
...
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