From d1b2dc3fe952d3a58b9eec520e71bb85fd0cfa8f Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Sat, 13 Apr 2013 17:04:03 -0400 Subject: [PATCH] Add type to text input field - fixes #706 Even though type="text" is the default, the find won't work without it explicitly included --- main/webapp/modules/core/scripts/dialogs/clustering-dialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js b/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js index c85f4249e..997af721a 100644 --- a/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js +++ b/main/webapp/modules/core/scripts/dialogs/clustering-dialog.js @@ -153,7 +153,7 @@ ClusteringDialog.prototype._renderTable = function(clusters) { cluster.value = 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; }; for (var c = 0; c < choices.length; c++) { @@ -202,7 +202,7 @@ ClusteringDialog.prototype._renderTable = function(clusters) { editCheck.attr("checked", "true"); } - var input = $('') + var input = $('') .attr("value", cluster.value) .keyup(function() { cluster.value = this.value;