diff --git a/NEWS.md b/NEWS.md index d21f86130426..8a71bfadea9e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,9 +12,10 @@ Bugfixes: * Fixes an error that preventing the load of WMS layers. -* Fixes an unncessary binding that made the dashboard reloading twice. +* Fixes an unncessary binding that made the dashboard reloading twice. * Fix markdown from descriptions not rendered correctly in dashboard view [#2572](https://github.com/CartoDB/cartodb/issues/2572) * Fix new dashboard URLs creation [#2662](https://github.com/CartoDB/cartodb/pull/2662) +* Redirect to list on delete table vis [#2697](https://github.com/CartoDB/cartodb/pull/2697) 3.8.1 (2015-02-26) ------------------ diff --git a/config/frontend.yml b/config/frontend.yml index ef7310500d99..a9b2f2898625 100644 --- a/config/frontend.yml +++ b/config/frontend.yml @@ -1,2 +1,2 @@ #This file defines the version of the frontend code that is going to be loaded. -3.7.21 +3.7.22 diff --git a/lib/assets/javascripts/cartodb/table/header/options_menu.js b/lib/assets/javascripts/cartodb/table/header/options_menu.js index e997a77179af..484b5559e296 100644 --- a/lib/assets/javascripts/cartodb/table/header/options_menu.js +++ b/lib/assets/javascripts/cartodb/table/header/options_menu.js @@ -42,11 +42,11 @@ cdb.admin.HeaderOptionsMenu = cdb.admin.DropdownMenu.extend({ this.table = this.model.map.layers && this.model.map.layers.last().table; this.user = this.options.user; this.dataLayer = this.options.dataLayer; - + opts.isVisualization = this.model.isVisualization(); opts.table = this.table; opts.dataLayer = this.options.dataLayer; - + // Get ownership from the visualization or from the table selected // depending the type of it (table or derived) // opts.isOwner = this[ this.model.isVisualization() ? 'model' : 'table' ].permission.isOwner(this.options.user); @@ -200,7 +200,7 @@ cdb.admin.HeaderOptionsMenu = cdb.admin.DropdownMenu.extend({ this.delete_dialog.ok = function() { self.model.destroy({ success: function() { - window.location.href = cdb.config.prefixUrl() + "/dashboard/" + window.location = cdb.config.prefixUrl() + "/dashboard/tables" } }); }; @@ -231,7 +231,7 @@ cdb.admin.HeaderOptionsMenu = cdb.admin.DropdownMenu.extend({ e.preventDefault(); if (!this.options.geocoder.isGeocoding() && !this.table.isSync() && !this.table.isInSQLView()) { - + dlg = new cdb.admin.GeocodingDialog({ table: this.table, user: this.user, diff --git a/package.json b/package.json index 839991d2e697..a2accaffd92e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cartodb-ui", - "version": "3.7.21", + "version": "3.7.22", "description": "CartoDB UI frontend", "repository": { "type": "git",