Add descriptive comments

This commit is contained in:
will
2019-07-06 15:19:06 +02:00
parent 54c21d94b4
commit a9257fafcd
2 changed files with 8 additions and 0 deletions
@@ -210,6 +210,9 @@ var FolderToolbarView = Backbone.View.extend({
}
},
/**
* This function returns a promise
*/
fetchUserHistories: function() {
this.histories = new mod_library_model.GalaxyHistories();
return this.histories.fetch();
@@ -237,6 +240,9 @@ var FolderToolbarView = Backbone.View.extend({
}
},
/**
* This function returns a promise
*/
createNewHistory: function(new_history_name) {
return $.post(`${getAppRoot()}api/histories`, { name: new_history_name });
},
@@ -292,6 +292,8 @@ var BaseInputTerminal = Terminal.extend({
inputFilled = false;
} else {
if (this.multiple) {
// Can only attach one collection to multiple input
// data parameter.
inputFilled = !!this._collectionAttached();
} else {
inputFilled = true;