Add type to text input field - fixes #706

Even though type="text" is the default, the find won't work without it
explicitly included
This commit is contained in:
Tom Morris 2013-04-13 17:04:03 -04:00
parent 0d2881dac6
commit d1b2dc3fe9

View File

@ -153,7 +153,7 @@ ClusteringDialog.prototype._renderTable = function(clusters) {
cluster.value = value; cluster.value = value;
parent.find("input[type='text']").val(value); parent.find("input[type='text']").val(value);
parent.find("input:not(:checked)").attr('checked', true).change(); parent.find("input[type='checkbox']").attr('checked', true).change();
return false; return false;
}; };
for (var c = 0; c < choices.length; c++) { for (var c = 0; c < choices.length; c++) {
@ -202,7 +202,7 @@ ClusteringDialog.prototype._renderTable = function(clusters) {
editCheck.attr("checked", "true"); editCheck.attr("checked", "true");
} }
var input = $('<input size="25" />') var input = $('<input type="text" size="25" />')
.attr("value", cluster.value) .attr("value", cluster.value)
.keyup(function() { .keyup(function() {
cluster.value = this.value; cluster.value = this.value;