Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

[#1062] Course/Resource delete render publication fix (connects #1062) #1065

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions app/nation/app/views/PublicationCoursesTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ $(function() {

},
addOne: function(model) {
var publicationCourseRowView = new App.Views.PublicationCourseRow({
model: model
})
publicationCourseRowView.Id = this.Id
publicationCourseRowView.render()
this.$el.append(publicationCourseRowView.el)
if (model.attributes._id !== undefined) {
var publicationCourseRowView = new App.Views.PublicationCourseRow({
model: model
})
publicationCourseRowView.Id = this.Id
publicationCourseRowView.render()
this.$el.append(publicationCourseRowView.el)
}
},

addAll: function() {
Expand Down
14 changes: 8 additions & 6 deletions app/nation/app/views/PublicationResourceTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ $(function() {
//this.$el.append(_.template(this.template))
},
addOne: function(model) {
var publicationResourceRowView = new App.Views.PublicationResourceRow({
model: model
})
publicationResourceRowView.Id = this.Id
publicationResourceRowView.render()
this.$el.append(publicationResourceRowView.el)
if (model.attributes._id !== undefined) {
var publicationResourceRowView = new App.Views.PublicationResourceRow({
model: model
})
publicationResourceRowView.Id = this.Id
publicationResourceRowView.render()
this.$el.append(publicationResourceRowView.el)
}
},

addAll: function() {
Expand Down