]> dev.renevier.net Git - syp.git/blobdiff - js/admin.js
add throbber when modifying something in admin editor + rename pwd throbber image
[syp.git] / js / admin.js
index 02c88e3cb5d0d557815b4f9c49bff6b1701d84e8..c070ff2f8782991412b02fe7098df7ed2be7c3e0 100644 (file)
@@ -362,7 +362,8 @@ var FeatureMgr = {
         form.find('input[name="fid"]').val(feature.fid);
         AjaxMgr.add({
             form: form,
         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"); }
         });
     },
 
         });
     },
 
@@ -389,11 +390,13 @@ var FeatureMgr = {
         }
         AjaxMgr.add({
             form: form,
         }
         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) {
         });
     },
 
     ajaxReply: function (data) {
+        $("#editor_throbber").css("visibility", "hidden");
         if (!data) {
             this.commError(SypStrings.ServerError);
             return;
         if (!data) {
             this.commError(SypStrings.ServerError);
             return;