Merge pull request #1513 from edx/anton/word-cloud-total-count-in-studio-bug

Anton/word cloud total count in studio bug
This commit is contained in:
polesye
2013-11-01 06:19:45 -07:00

View File

@@ -239,6 +239,7 @@ define('WordCloudMain', ['logme'], function (logme) {
cloudSectionEl
.addClass('active')
.find('.your_words').html(studentWordsStr)
.end()
.find('.total_num_words').html(response.total_count);
$(cloudSectionEl.attr('id') + ' .word_cloud').empty();
@@ -282,7 +283,7 @@ define('WordCloudMain', ['logme'], function (logme) {
.attr('transform', function (d) {
return 'translate(' + [d.x, d.y] + ')rotate(' + d.rotate + ')scale(' + scale + ')';
})
.text(function (d) {
.text(function (d) {
return d.text;
});
}; // End-of: WordCloudMain.prototype.drawWordCloud = function (words, bounds) {