Skip to content

Commit

Permalink
Revert "only change wizard type when the geometry types could be gues…
Browse files Browse the repository at this point in the history
…sed CDB-1153"

This reverts commit 1210da8.
  • Loading branch information
rafacas committed Nov 28, 2013
1 parent d44290d commit 03fa7cf
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,8 @@ cdb.admin.mod.CartoCSSWizard = cdb.admin.Module.extend({


this.options.table.bind('change geolocated', function() {
// allow only to change type when length > 0
var geoTypeChanged = this.options.table.geometryTypeChanged() && this.options.table.data().length > 0;
var prev = this.options.table.previous('geometry_types');
if (geoTypeChanged && prev && prev.length) {
var geoTypeChanged = this.options.table.geometryTypeChanged();
if (geoTypeChanged && this.options.table.previous('geometry_types')) {
var wizard = this.model.get('wizard_properties');
wizard && (wizard.properties = {});
wizard && (wizard.type = 'polygon');
Expand Down

0 comments on commit 03fa7cf

Please sign in to comment.