info: Add loading spinner.
authorDavid Thompson <davet@gnu.org>
Wed, 22 Oct 2014 16:23:37 +0000 (12:23 -0400)
committerDavid Thompson <davet@gnu.org>
Wed, 22 Oct 2014 16:23:37 +0000 (12:23 -0400)
* assets/js/member-info.js: Remove loading spinner when form is loaded.
* templates/CRM/Memberdashboard/Page/Info.tpl: Add loading spinner.

assets/js/member-info.js
templates/CRM/Memberdashboard/Page/Info.tpl

index 6aaec0cc1a3d0b94d9f18391e9906048e333d588..d3a5e4f150fa6af257673f03913fbd1e7a2935df 100644 (file)
@@ -48,6 +48,7 @@
       .append(profile.hidden)
       .append.apply(form, renderFields());
 
+    $('#info-loading').remove();
     $('#crm-main-content-wrapper').append(form);
   }
 
index c6c5b903c7f1562da834397e09332f80eca44b75..2ef3a3f714ed690acd9a8e2aa3417c987f4a33fb 100644 (file)
@@ -19,8 +19,6 @@
   <http://www.gnu.org/licenses/>.
 *}
 
-<h3>Contact info goes here</h3>
-
 <noscript>
   <p>
     You seem to have JavaScript disabled.  To edit your contact
@@ -28,3 +26,6 @@
     <a href="/drupal/civicrm/profile/edit?reset=1&gid=1">follow this link</a>.
   </p>
 </noscript>
+
+<div id="info-loading" class="blockUI blockOverlay" style="height:100px">
+</div>