update place panel ui

This commit is contained in:
rolux 2011-06-01 15:33:09 +02:00
parent 7d792800db
commit 408280e741

View file

@ -732,13 +732,11 @@ Ox.ListMap = function(options, self) {
self.$placeForm.values(place).show(); self.$placeForm.values(place).show();
self.$areaKmInput.options({value: Ox.formatArea(place.area)}); self.$areaKmInput.options({value: Ox.formatArea(place.area)});
self.$placeButton.options({title: isResult ? 'Add Place' : 'Remove Place'}).show(); self.$placeButton.options({title: isResult ? 'Add Place' : 'Remove Place'}).show();
self.$revertButton.options({disabled: true}).show();
} else { } else {
self.selectedPlace = null; self.selectedPlace = null;
self.$placeTitle.hide(); self.$placeTitle.hide();
self.$placeForm.hide(); self.$placeForm.hide();
self.$placeButton.hide(); self.$placeButton.hide();
self.$revertButton.hide();
} }
} }