add throbber when modifying something in admin editor + rename pwd throbber image
authorarno <arenevier@fdn.fr>
Thu, 6 Aug 2009 12:48:44 +0000 (14:48 +0200)
committerarno <arenevier@fdn.fr>
Fri, 7 Aug 2009 10:07:50 +0000 (12:07 +0200)
COPYING.txt
inc/templates_admin.php
js/admin.js
media/editor-throbber.gif [moved from media/newimage_throbber.gif with 100% similarity]
media/pwd-throbber.gif [moved from media/pwd_throbber.gif with 100% similarity]

index ad60c4fce5985895eef9d64a90c08c70fc5b5f72..67f5285fc9de7debeb7fda6f3f8a64cf977c5f39 100644 (file)
@@ -8,7 +8,7 @@
 - Jquery is available under both MIT and GPL licences. More informations can be
   found at http://docs.jquery.com/Licensing
 
-- newimage_throbber.gif and pwd_throbber.gif files have been generated with
+- editor-throbber.gif and pwd-throbber.gif files have been generated with
   http://ajaxload.info/ generator and are free for use.
 
 
index c3500dc4069205f28180bd88a70c601ea68a0115..3931aa0beee3b0db547b8fd4672bcacf1aad8f5e 100644 (file)
@@ -135,6 +135,10 @@ if (!$usrtblexists || !$itemstblexists) {
             <input type="hidden" name="request" value="del">
             <input type="hidden" name="fid">
         </form>
+        <p id="editor_throbber" class="throbber center">
+            <?php ptrans('Connecting')?>
+            <img src="media/editor-throbber.gif">
+        </p>
     </div>
 
       <div id="login_area"
@@ -161,7 +165,7 @@ if (!$usrtblexists || !$itemstblexists) {
             </p>
             <p id="pwd_throbber" class="throbber center">
                 <?php ptrans('Connecting')?>
-                <img src="media/pwd_throbber.gif" alt="throbber">
+                <img src="media/pwd-throbber.gif" alt="throbber">
             </p>
             <p class="error center" id="login_error"></p>
         </form>
index 02c88e3cb5d0d557815b4f9c49bff6b1701d84e8..c070ff2f8782991412b02fe7098df7ed2be7c3e0 100644 (file)
@@ -362,7 +362,8 @@ var FeatureMgr = {
         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,
-            oncomplete: OpenLayers.Function.bind(this.ajaxReply, this)
+            oncomplete: OpenLayers.Function.bind(this.ajaxReply, this),
+            onsend: function() { $("#editor_throbber").css("visibility", "visible"); }
         });
     },
 
     ajaxReply: function (data) {
+        $("#editor_throbber").css("visibility", "hidden");
         if (!data) {
             this.commError(SypStrings.ServerError);
             return;