From 70d4229a2fbae8890578ef3b581ae741c4343364 Mon Sep 17 00:00:00 2001 From: Tom Morris Date: Thu, 25 Jul 2013 12:43:05 -0400 Subject: [PATCH] Restore code mistakenly removed in 109138366b2312977446961426bce86a8b2a4a7a Put it where Eclipse doesn't get confused about it being unreferenced --- .../views/data-table/menu-edit-column.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/main/webapp/modules/core/scripts/views/data-table/menu-edit-column.js b/main/webapp/modules/core/scripts/views/data-table/menu-edit-column.js index db718ab18..24d7e2bb8 100644 --- a/main/webapp/modules/core/scripts/views/data-table/menu-edit-column.js +++ b/main/webapp/modules/core/scripts/views/data-table/menu-edit-column.js @@ -52,6 +52,15 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) { var level = DialogSystem.showDialog(frame); var dismiss = function() { DialogSystem.dismissUntil(level - 1); }; + var o = DataTableView.sampleVisibleRows(column); + var previewWidget = new ExpressionPreviewDialog.Widget( + elmts, + column.cellIndex, + o.rowIndices, + o.values, + null + ); + elmts.cancelButton.click(dismiss); elmts.okButton.click(function() { var columnName = $.trim(elmts.columnNameInput[0].value); @@ -101,6 +110,15 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) { var level = DialogSystem.showDialog(frame); var dismiss = function() { DialogSystem.dismissUntil(level - 1); }; + var o = DataTableView.sampleVisibleRows(column); + var previewWidget = new ExpressionPreviewDialog.Widget( + elmts, + column.cellIndex, + o.rowIndices, + o.values, + null + ); + elmts.cancelButton.click(dismiss); elmts.okButton.click(function() { var columnName = $.trim(elmts.columnNameInput[0].value);