update place panel ui

This commit is contained in:
rolux 2011-06-01 15:28:21 +02:00
parent f6803dd9e5
commit 049692f948

View file

@ -513,6 +513,7 @@ Ox.ListMap = function(options, self) {
.bindEvent({
click: self.$map.newPlace
})
.appendTo(self.$placeStatusbar);
self.$placeButton = Ox.Button({
title: 'Add Place',
@ -729,13 +730,13 @@ Ox.ListMap = function(options, self) {
self.$placeTitle.show();
self.$placeForm.values(place).show();
self.$areaKmInput.options({value: Ox.formatArea(place.area)});
self.$placeButton.options({title: isResult ? 'Add Place' : 'Remove Place'});
self.$placeButton.options({title: isResult ? 'Add Place' : 'Remove Place'}).show();
self.$revertButton.options({disabled: true}).show();
} else {
self.selectedPlace = null;
self.$placeTitle.hide();
self.$placeForm.hide();
self.$placeButton.options({title: 'New Place'});
self.$placeButton.hide();
self.$revertButton.hide();
}
}