};
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));
}
if (this.logged) {
this.controlsdeck.setIndex(1);
- $("geom_accept_container").hide();
+ $$(".logged-hide").invoke('hide');
+ $$(".logged-show").invoke('show');
} else {
this.controlsdeck.setIndex(0);
- $("geom_accept_container").show();
+ $$(".logged-hide").invoke('show');
+ $$(".logged-show").invoke('hide');
}
if (this.iscreator) {