From: Coleman Watts Date: Fri, 19 Sep 2014 18:41:36 +0000 (-0400) Subject: Api explorer - add loading icon to api.action X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=754927e4f53264f19da3fdb5ee4cb4dae5b2ec3e;p=civicrm-core.git Api explorer - add loading icon to api.action --- diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index 51709f3b72..2063c2a62f 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -126,6 +126,7 @@ */ function getActions() { if (entity) { + $('#api-action').addClass('loading'); CRM.api3(entity, 'getactions').done(function(data) { actions = data.values || ['get']; populateActions(); @@ -142,7 +143,7 @@ */ function populateActions(el) { var val = $('#api-action').val(); - $('#api-action').select2({ + $('#api-action').removeClass('loading').select2({ data: _.transform(actions, function(ret, item) {ret.push({text: item, id: item})}) }); // If previously selected action is not available, set it to 'get' if possible