function ReconDialog(column, types) {
this._column = column;
this._types = types;
this._createDialog();
}
ReconDialog.prototype._createDialog = function() {
var self = this;
var frame = DialogSystem.createDialog();
frame.width("400px");
var header = $('
').addClass("dialog-header").text("Reconcile column " + this._column.headerLabel).appendTo(frame);
var body = $('').addClass("dialog-body").appendTo(frame);
var footer = $('').addClass("dialog-footer").appendTo(frame);
$('').text("Reconcile cell values to topics of type:").appendTo(body);
if (this._types.length > 0) {
var createTypeChoice = function(type) {
var div = $('
').appendTo(body);
$('')
.attr("value", type.id)
.attr("typeName", type.name)
.appendTo(div);
$('').text(" " + type.name).appendTo(div);
$('').text(" (" + type.id + ")").appendTo(div);
};
for (var i = 0; i < this._types.length && i < 7; i++) {
createTypeChoice(this._types[i]);
}
var divCustom = $('