X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=js%2Fadmin.js;h=d1bd22e5f0d19bd17bd670d170c7962fca0002e7;hp=abce8a52ef93ee15b24df7ed9f5702e383e852e4;hb=8cff84ad1697a836c1361e669bd1b797957e75d0;hpb=a7bcc264414275e273cdf494f1be25a05bffd55c diff --git a/js/admin.js b/js/admin.js index abce8a5..d1bd22e 100644 --- a/js/admin.js +++ b/js/admin.js @@ -269,7 +269,6 @@ var Admin = { addNewFeature: function () { userMgr.close(); - function cancel() { $(document).unbind("keydown"); Admin.reset() @@ -398,6 +397,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, "", "", ""); @@ -429,6 +432,8 @@ var FeatureMgr = { }, del: function (feature) { + alert (SypStrings.DisabledForDemo); + return; var form = $("#feature_delete"); form.find('input[name="fid"]').val(feature.fid); AjaxMgr.add({ @@ -938,6 +943,10 @@ var userMgr = { this.commError(""); + this.disableForms(); + alert (SypStrings.DisabledForDemo); + return; + AjaxMgr.add({ form: $("#changepass"), oncomplete: OpenLayers.Function.bind(this.ajaxReply, this), @@ -1021,6 +1030,9 @@ var userMgr = { } this.commError(""); + this.disableForms(); + alert (SypStrings.DisabledForDemo); + return; AjaxMgr.add({ form: $("#newuser"), @@ -1179,6 +1191,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.