From add2afa93aeb6d20e390b37919378e51fdfc7961 Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Sun, 1 Apr 2012 18:26:47 +0100 Subject: [PATCH] [view/grid][xs]: remove obsolete unused menu options (and associated TODOs) plus delete column (since not working). * Not clear how easy it is to implement delete column. --- src/view-grid.js | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/view-grid.js b/src/view-grid.js index c74a6f4e..f777d784 100644 --- a/src/view-grid.js +++ b/src/view-grid.js @@ -76,20 +76,6 @@ my.DataGrid = Backbone.View.extend({ sortDesc: function() { self.setColumnSort('desc') }, hideColumn: function() { self.hideColumn() }, showColumn: function() { self.showColumn(e) }, - // TODO: Delete or re-implement ... - csv: function() { window.location.href = app.csvUrl }, - json: function() { window.location.href = "_rewrite/api/json" }, - urlImport: function() { showDialog('urlImport') }, - pasteImport: function() { showDialog('pasteImport') }, - uploadImport: function() { showDialog('uploadImport') }, - // END TODO - deleteColumn: function() { - var msg = "Are you sure? This will delete '" + self.state.currentColumn + "' from all documents."; - // TODO: - alert('This function needs to be re-implemented'); - return; - if (confirm(msg)) costco.deleteColumn(self.state.currentColumn); - }, deleteRow: function() { var doc = _.find(self.model.currentDocuments.models, function(doc) { // important this is == as the currentRow will be string (as comes @@ -176,7 +162,6 @@ my.DataGrid = Backbone.View.extend({ \