X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=js%2Fadmin.js;fp=js%2Fadmin.js;h=cc02a60a00b040b40cb0238dbc5612465e6d2c8e;hp=71daf2c7cc93ca4ecf6ad97dfa64ed98b9de34a8;hb=16f9936de11e0bfe080334eb1416a8faff39b34f;hpb=4414f33ecd172ea188660a45c8d8fb3469416d4f diff --git a/js/admin.js b/js/admin.js index 71daf2c..cc02a60 100644 --- a/js/admin.js +++ b/js/admin.js @@ -329,7 +329,6 @@ var Admin = { addNewFeature: function () { userMgr.close(); - function cancel() { $(document).unbind("keydown"); Admin.reset() @@ -458,6 +457,10 @@ var FeatureMgr = { }, add: function(evt) { + alert (SypStrings.DisabledForDemo); + $(document).unbind("keydown"); + Admin.reset() + return; var map = Admin.map; var pos = map.getLonLatFromViewPortPx(evt.xy); feature = this.update (null, pos, "", "", ""); @@ -489,6 +492,8 @@ var FeatureMgr = { }, del: function (feature) { + alert (SypStrings.DisabledForDemo); + return; var form = $("#feature_delete"); form.find('input[name="fid"]').val(feature.fid); AjaxMgr.add({ @@ -998,6 +1003,10 @@ var userMgr = { this.commError(""); + this.disableForms(); + alert (SypStrings.DisabledForDemo); + return; + AjaxMgr.add({ form: $("#changepass"), oncomplete: OpenLayers.Function.bind(this.ajaxReply, this), @@ -1081,6 +1090,9 @@ var userMgr = { } this.commError(""); + this.disableForms(); + alert (SypStrings.DisabledForDemo); + return; AjaxMgr.add({ form: $("#newuser"), @@ -1239,6 +1251,8 @@ $(window).load(function () { return false; }); $("#image_delete").click(function() { + alert (SypStrings.DisabledForDemo); + return; $("#img").removeAttr('src'); // needs to rebuild element otherwise some browsers still // display image.