update place panel ui
This commit is contained in:
parent
f6803dd9e5
commit
049692f948
1 changed files with 3 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue