Merge pull request #10974 from edx/saleem-latif/SOL-1418-review-changes

SOL-1418: display certificate generate history in reverse chronological order
This commit is contained in:
Matt Drayer
2015-12-17 00:02:13 -05:00
4 changed files with 27 additions and 15 deletions

View File

@@ -32,7 +32,12 @@
render: function(){
var template = this.loadTemplate('certificate-white-list');
this.$el.html(template({certificates: this.collection.models}));
if (this.collection.isEmpty()) {
this.$("#generate-exception-certificates").addClass("is-disabled");
}
else {
this.$("#generate-exception-certificates").removeClass("is-disabled");
}
},
loadTemplate: function(name) {