var Admin = {
Settings: {
- MARKER_ICON: "openlayers/img/marker-blue.png",
- MARKER_ICON_HEIGHT: 25,
- MARKER_SELECT_ICON: "openlayers/img/marker-green.png",
- MARKER_SELECT_ICON_HEIGHT: 25,
- MARKER_TEMPORARY_ICON: "openlayers/img/marker-gold.png",
- MARKER_TEMPORARY_ICON_HEIGHT: 25
+ MARKER_ICON: "media/marker-normal.png",
+ MARKER_SELECT_ICON: "media/marker-selected.png",
+ MARKER_TEMPORARY_ICON: "media/marker-temp.png",
+ MARKER_HEIGHT: 25
},
map: null,
var styleMap = new OpenLayers.StyleMap (
{"default": {
externalGraphic: this.Settings.MARKER_ICON,
- graphicHeight: this.Settings.MARKER_ICON_HEIGHT
- || 32
+ graphicHeight: this.Settings.MARKER_HEIGHT || 32
},
"temporary": {
externalGraphic: this.Settings.MARKER_TEMPORARY_ICON,
- graphicHeight: this.Settings.MARKER_TEMPORARY_ICON_HEIGHT
- || 32
+ graphicHeight: this.Settings.MARKER_HEIGHT || 32
},
"select": {
externalGraphic: this.Settings.MARKER_SELECT_ICON,
- graphicHeight: this.Settings.MARKER_SELECT_ICON_HEIGHT
- || 32
+ graphicHeight: this.Settings.MARKER_HEIGHT || 32
}});
var layer = new OpenLayers.Layer.GML("KML", "items.php",
},
addNewFeature: function () {
+ alert (SypStrings.DisabledForDemo);
+ return;
function cancel() {
$(document).unbind("keydown");
Admin.reset()
},
del: function (feature) {
+ alert (SypStrings.DisabledForDemo);
+ return;
var form = $("#feature_delete");
form.find('input[name="fid"]').val(feature.fid);
AjaxMgr.add({
form: form,
- oncomplete: OpenLayers.Function.bind(this.ajaxReply, this)
+ oncomplete: OpenLayers.Function.bind(this.ajaxReply, this),
+ onsend: function() { $("#editor_throbber").css("visibility", "visible"); }
});
},
}
AjaxMgr.add({
form: form,
- oncomplete: OpenLayers.Function.bind(this.ajaxReply, this)
+ oncomplete: OpenLayers.Function.bind(this.ajaxReply, this),
+ onsend: function() { $("#editor_throbber").css("visibility", "visible"); }
});
},
ajaxReply: function (data) {
+ $("#editor_throbber").css("visibility", "hidden");
if (!data) {
this.commError(SypStrings.ServerError);
return;
switch (xml.documentElement.getAttribute("reason")) {
case "unauthorized":
$("#login_area").show();
+ $("#cookie_warning").show();
this.reset();
+ Admin.cancelCurrentFeature();
Admin.reset();
break;
case "server":
return false;
});
$("#image_delete").click(function() {
+ alert (SypStrings.DisabledForDemo);
+ return;
$("#img").removeAttr('src');
// needs to rebuild element otherwise some browsers still
// display image.