X-Git-Url: https://dev.renevier.net/gitweb.cgi?p=syp.git;a=blobdiff_plain;f=js%2Fadmin.js;h=c070ff2f8782991412b02fe7098df7ed2be7c3e0;hp=02c88e3cb5d0d557815b4f9c49bff6b1701d84e8;hb=2e4b166add373d0a2edcbd8b81babfec7a1b3892;hpb=3c9d0dbaecbd62e5933096270da3e970371d67ec;ds=sidebyside diff --git a/js/admin.js b/js/admin.js index 02c88e3..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;