}
};
-var SYJDataUi = function() {
- var deck = null;
- var getdeck = function() {
+var SYJDataUi = (function() {
+ var deck = null,
+ getdeck = function() {
if (!deck) {
deck = new Deck("data_controls");
}
return deck;
- }
+ };
return {
viewmode: function() {
getdeck().setIndex(0);
editmode: function() {
getdeck().setIndex(1);
}
- }
-}();
+ };
+}());
OpenLayers.Handler.SyjModifiablePath = OpenLayers.Class(OpenLayers.Handler.ModifiablePath, {
mouseup: function(evt) {
layerOptions = {format: OpenLayers.Format.WKT,
projection: WGS84,
- styleMap: styleMap.view};
- if (gLoggedInfo.creatorname) {
- layerOptions.attribution = SyjStrings.routeBy + ' ' + '<strong>' + gLoggedInfo.creatorname + '</strong>';
- }
+ styleMap: styleMap.view,
+ attribution: SyjStrings.geomAttribution };
this.viewLayer = new OpenLayers.Layer.Vector("View Layer", layerOptions);
this.map.addLayers([baseLayer, this.viewLayer]);
$$("#user_termsofuse_anchor, #geom_termsofuse_anchor").invoke('observe', "click", function(evt) {
if (!this.toubox) {
- $("termsofusearea").show();
- $("termsofuseiframe").setAttribute("src", evt.target.href);
this.toubox = new SimpleBox($("termsofusearea"), {
closeMethods: ["onescapekey", "onouterclick", "onbutton"]
});
}
this.toubox.show();
+ if (!$("termsofuseiframe").getAttribute("src")) {
+ $("termsofusearea").show();
+ $("termsofuseiframe").setAttribute("src", evt.target.href);
+ }
evt.stop();
}.bindAsEventListener(this));