Skip to content

Commit

Permalink
improved tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
michael committed Dec 11, 2014
1 parent bda56f9 commit 3157f8c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions js/AppAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,15 @@ var AppAPI = (function() {
* Creates a new tag
*
* @param {String} tag JSON object with the tag to create, must contain tagTypeId and name properties
* @param {Function} callback function(Boolean)
* @param {Function} succcess function({Tag}) Callback called when the tag is created, argument is the new tag
* @param {Function} error function({Tag}) Callback called if something goes wrong, argument is an error message
*/
Api.prototype.createTag = function(tag, callback) {
Api.prototype.createTag = function(tag, success, error) {
this.request('tag-create', {
tag: tag
}, callback);
tag: tag,
success: success,
error: error
});
};

/**
Expand Down

0 comments on commit 3157f8c

Please sign in to comment.