X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=js%2Fadmin.js;h=c070ff2f8782991412b02fe7098df7ed2be7c3e0;hp=e0a27ea58570c14b946ff4a84f6f7e85659f5e7d;hb=2e4b166add373d0a2edcbd8b81babfec7a1b3892;hpb=fc2dd35ebd3dd2905f7ee24f6622d8dabd32b715 diff --git a/js/admin.js b/js/admin.js index e0a27ea..c070ff2 100644 --- a/js/admin.js +++ b/js/admin.js @@ -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; @@ -406,7 +409,9 @@ var FeatureMgr = { switch (xml.documentElement.getAttribute("reason")) { case "unauthorized": $("#login_area").show(); + $("#cookie_warning").show(); this.reset(); + Admin.cancelCurrentFeature(); Admin.reset(); break; case "server":