X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=js%2Fadmin.js;h=5b27b9d7615cf94e2444214508cb11f88adeaa07;hp=85a28ddca09ee94712d9ba3e547bd01a6745a30f;hb=fae41854ef2408f0b00c50eac06e5a13125db4f1;hpb=274b5f5506b242b4680bc8fe3d9811f668c06f29 diff --git a/js/admin.js b/js/admin.js index 85a28dd..5b27b9d 100644 --- a/js/admin.js +++ b/js/admin.js @@ -268,8 +268,9 @@ var Admin = { }, addNewFeature: function () { + alert (SypStrings.DisabledForDemo); + return; userMgr.close(); - function cancel() { $(document).unbind("keydown"); Admin.reset() @@ -429,6 +430,8 @@ var FeatureMgr = { }, del: function (feature) { + alert (SypStrings.DisabledForDemo); + return; var form = $("#feature_delete"); form.find('input[name="fid"]').val(feature.fid); AjaxMgr.add({ @@ -932,6 +935,10 @@ var userMgr = { this.commError(""); + this.disableForms(); + alert (SypStrings.DisabledForDemo); + return; + AjaxMgr.add({ form: $("#changepass"), oncomplete: OpenLayers.Function.bind(this.ajaxReply, this), @@ -1009,6 +1016,9 @@ var userMgr = { } this.commError(""); + this.disableForms(); + alert (SypStrings.DisabledForDemo); + return; AjaxMgr.add({ form: $("#newuser"), @@ -1167,6 +1177,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.