From 754927e4f53264f19da3fdb5ee4cb4dae5b2ec3e Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 19 Sep 2014 14:41:36 -0400 Subject: [PATCH] Api explorer - add loading icon to api.action --- templates/CRM/Admin/Page/APIExplorer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.25.1