Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change 'Create' to 'Add' in clues/teams editor

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
  • Loading branch information...
commit 39503ee7ed4f970dda1113f6a45ab40b7ea36d91 1 parent 8a4a210
@stefanha stefanha authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/static/js/list-edit.js
View
7 src/static/js/list-edit.js
@@ -9,7 +9,6 @@ function ListEdit(values, elementId, headers, fields) {
var th = jQuery('<th></th>').appendTo(tr);
th.text(headers[i]);
}
- jQuery('<th>Delete</th>').appendTo(tr);
this.render(values);
@@ -49,11 +48,11 @@ ListEdit.prototype.render = function(values) {
}
jQuery('.Delete').click(this.addEventHandler('deleteValue'));
- this.element.append(this.renderValue({}, 'Create'));
- jQuery('.Create').click(this.addEventHandler('createValue'));
+ this.element.append(this.renderValue({}, 'Add'));
+ jQuery('.Add').click(this.addEventHandler('addValue'));
};
-ListEdit.prototype.createValue = function(e, element) {
+ListEdit.prototype.addValue = function(e, element) {
var tr = jQuery(element).parent().parent();
var i;
var value = {};

0 comments on commit 39503ee

Please sign in to comment.
Something went wrong with that request. Please try again.