diff --git a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleForm/widgets/FreeFormTableController.js b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleForm/widgets/FreeFormTableController.js index c73db525611096c17a24e34b6714176b580e581a..49c70602645054dbf0cd324f9aa6f6177310adcd 100644 --- a/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleForm/widgets/FreeFormTableController.js +++ b/plasmid/source/core-plugins/newbrowser/1/as/webapps/newbrowser/html/js/views/SampleForm/widgets/FreeFormTableController.js @@ -74,7 +74,7 @@ function FreeFormTableController(sample, isEnabled) { tableModel.modelDetailed.splice(rowIdx, 0, new Array(numColumns)); //Mini Model tableModel.modelMini.rows.splice(rowIdx, 0, ''); - + //Trigger Update this._updateChangesOnDOMandView(tableModel, $wrappedTable); } @@ -83,7 +83,7 @@ function FreeFormTableController(sample, isEnabled) { tableModel.modelDetailed.splice(rowIdx, 1); //Mini Model tableModel.modelMini.rows.splice(rowIdx, 1); - + //Trigger Update this._updateChangesOnDOMandView(tableModel, $wrappedTable); } @@ -94,20 +94,26 @@ function FreeFormTableController(sample, isEnabled) { } //Mini Model tableModel.modelMini.columns.splice(colIdx, 0, ''); - + //Trigger Update this._updateChangesOnDOMandView(tableModel, $wrappedTable); } this.delColumn = function(tableModel, $wrappedTable, colIdx) { - + //Detailed Model + for(var i = 0; i < tableModel.modelDetailed.length; i++) { + tableModel.modelDetailed[i].splice(colIdx, 1); + } + //Mini Model + tableModel.modelMini.columns.splice(colIdx, 1); + //Trigger Update this._updateChangesOnDOMandView(tableModel, $wrappedTable); } - this.importCSV = function(tableModel) { + this.importCSV = function(tableModel, $wrappedTable) { } - this.exportCSV = function(tableModel) { + this.exportCSV = function(tableModel, $wrappedTable) { } //