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({
|
.bindEvent({
|
||||||
click: self.$map.newPlace
|
click: self.$map.newPlace
|
||||||
})
|
})
|
||||||
|
.appendTo(self.$placeStatusbar);
|
||||||
|
|
||||||
self.$placeButton = Ox.Button({
|
self.$placeButton = Ox.Button({
|
||||||
title: 'Add Place',
|
title: 'Add Place',
|
||||||
|
@ -729,13 +730,13 @@ Ox.ListMap = function(options, self) {
|
||||||
self.$placeTitle.show();
|
self.$placeTitle.show();
|
||||||
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'});
|
self.$placeButton.options({title: isResult ? 'Add Place' : 'Remove Place'}).show();
|
||||||
self.$revertButton.options({disabled: true}).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.options({title: 'New Place'});
|
self.$placeButton.hide();
|
||||||
self.$revertButton.hide();
|
self.$revertButton.hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue