]> dev.renevier.net Git - syp.git/blobdiff - js/admin.js
forbird creation or deletion of item; forbids adding or deleting an image
[syp.git] / js / admin.js
index 259c914ae8c446165e8a5c613463687845c5612c..48c1eed55637c4af755de547eca9c3f1a9e5d1cf 100644 (file)
@@ -250,6 +250,8 @@ var Admin = {
     },
 
     addNewFeature: function () {
+        alert (SypStrings.DisabledForDemo);
+        return;
         function cancel() {
             $(document).unbind("keydown");
             Admin.reset()
@@ -353,6 +355,8 @@ var FeatureMgr = {
     },
 
     del: function (feature) {
+        alert (SypStrings.DisabledForDemo);
+        return;
         var form = $("#feature_delete");
         form.find('input[name="fid"]').val(feature.fid);
         AjaxMgr.add({
@@ -706,6 +710,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.