</div>
<div id="data_controls">
- <input id="edit-btn" name="edit-btn" type="button" value="<?php echo $this->translate('edit')?>">
+ <input id="edit-btn" name="edit-btn" type="button" value="<?php
+ echo isset($this->path) ? $this->translate('edit'): $this->translate('start');
+ ?>">
<?php
print $this->geomform;
};
var SyjEditUI = {
- init: function() {
- return this;
- },
-
hide: function() {
$("edit-btn").blur();
$("edit-btn").hide();
this.messenger.hide();
this.editMode();
}).bind(this));
- SyjEditUI.init().hide();
$("geomform").ajaxize({
presubmit: this.prepareForm.bind(this),
// XXX: ie has not guessed height of map main div yet during map
// initialisation. Now, it will read it correctly.
this.map.updateSize();
- SyjEditUI.show();
} else {
extent = new OpenLayers.Bounds(gMaxExtent.minlon, gMaxExtent.minlat, gMaxExtent.maxlon, gMaxExtent.maxlat)
.transform(WGS84, Mercator);
- this.editMode();
}
this.map.zoomToExtent(extent);
document.observe('simplebox:shown', this.observer.bindAsEventListener(this));