Skip to content

Commit

Permalink
Minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
taylortom committed Aug 22, 2016
1 parent 068fb7a commit 194c705
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions frontend/src/core/app/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ define(function(require){
: list[i];
html += '<li class="tag-item" title="' + tag + '"><span class="tag-value">' + tag + '</span></li>';
}
html += '</ul>'
html += '</ul>';
}

return html;
Expand All @@ -214,15 +214,15 @@ define(function(require){
},

getAssetFromValue: function(url) {
var urlSplit = url.split('/')
var urlSplit = url.split('/');
var fileName = urlSplit[urlSplit.length - 1];
// Get courseAsset model
var courseAsset = Origin.editor.data.courseAssets.findWhere({_fieldName: fileName});

if (courseAsset) {
var courseAssetId = courseAsset.get('_assetId');

return '/api/asset/serve/' + courseAssetId;
return '/api/asset/serve/' + courseAssetId;
} else {
return '';
}
Expand All @@ -237,7 +237,7 @@ define(function(require){
},

getThumbnailFromValue: function(url) {
var urlSplit = url.split('/')
var urlSplit = url.split('/');
var fileName = urlSplit[urlSplit.length - 1];
// Get courseAsset model
var courseAsset = Origin.editor.data.courseAssets.findWhere({_fieldName: fileName});
Expand Down Expand Up @@ -316,7 +316,7 @@ define(function(require){
var currentChildren = model.getChildren();

// Do validate across each item
if (currentChildren.length == 0) {
if (currentChildren.length === 0) {
containsAtLeastOneChild = false;

alerts.push(
Expand All @@ -336,6 +336,7 @@ define(function(require){
}
}

// call iterator
iterateOverChildren(currentCourse);

if(alerts.length > 0) {
Expand All @@ -355,9 +356,10 @@ define(function(require){
return containsAtLeastOneChild;
},

validateCourseConfirm: function(isConfirmed) {
if (isConfirmed) {
Origin.trigger('editor:courseValidation');
validateCourseConfirm: function(isConfirmed) {
if (isConfirmed) {
Origin.trigger('editor:courseValidation');
}
}
};

Expand Down

0 comments on commit 194c705

Please sign in to comment.