From: Coleman Watts Date: Sun, 25 Jan 2015 22:15:11 +0000 (-0500) Subject: API explorer js style cleanup X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ff8870742fc22f65278a3a35caae642aa560bf87;p=civicrm-core.git API explorer js style cleanup --- diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index f472cec90c..e654110335 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -74,7 +74,7 @@ ($(item.element).hasClass('strikethrough') ? '' + item.text + '' : item.text); }, placeholder: ' ' + ts('Entity'), - escapeMarkup: function(m) {return m} + escapeMarkup: function(m) {return m;} }); } @@ -91,7 +91,7 @@ CRM.api3(entity, 'getactions') .done(function(actions) { $selector.prop('disabled', false); - CRM.utils.setOptions($('.api-chain-action', $row), _.transform(actions.values, function(ret, item) {ret.push({value: item, key: item})})); + CRM.utils.setOptions($('.api-chain-action', $row), _.transform(actions.values, function(ret, item) {ret.push({value: item, key: item});})); }); } } @@ -182,7 +182,7 @@ function populateActions(el) { var val = $('#api-action').val(); $('#api-action').removeClass('loading').select2({ - data: _.transform(actions.values, function(ret, item) {ret.push({text: item, id: item})}), + data: _.transform(actions.values, function(ret, item) {ret.push({text: item, id: item});}), formatSelection: renderAction, formatResult: renderAction });