X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=templates%2FCRM%2FAdmin%2FPage%2FAPIExplorer.js;h=2df88070abb5023b0299d21c98c478f4516055bb;hb=75f8dac25af8ef7cf76df7500d11b958256fa45c;hp=e530b27a49b566139fc6d036690e2db7d7c3d1e4;hpb=77099ee0f0fac9999a8e7a7746f06fd3a71e6032;p=civicrm-core.git diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index e530b27a49..2df88070ab 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -86,12 +86,7 @@ id: 'api_action', text: 'Action' }); - options.api_action = []; - $('option', '#api-action').each(function() { - if (this.value) { - options.api_action.push({key: this.value, value: $(this).text()}); - } - }); + options.api_action = _.transform(actions, function(ret, item) {ret.push({value: item, key: item})}); showFields(['api_action']); return; }