X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fcrm.searchForm.js;h=c84d0f5ec292a549a3378a97b82a656f801b288f;hb=2136cc90ba97b00c53a5ba57ad1853f2f277f45b;hp=785ae15afe4e2721548bb1fb8567f057ce960614;hpb=d6023320055f1b29ae50670e69faa80688d22115;p=civicrm-core.git diff --git a/js/crm.searchForm.js b/js/crm.searchForm.js index 785ae15afe..c84d0f5ec2 100644 --- a/js/crm.searchForm.js +++ b/js/crm.searchForm.js @@ -63,13 +63,13 @@ params.name = $('input.select-row').map(function() {return $(this).attr('id');}).get().join('-'); } } - $.getJSON(url, params, function(data) { + $.post(url, params, function(data) { if (data && data.getCount !== undefined) { selected = data.getCount; displayCount(); enableTaskMenu(); } - }); + }, 'json'); } /** @@ -134,7 +134,7 @@ // When selecting a task .on('change', 'select#task', function(e) { var $form = $(this).closest('form'), - $go = $('input.crm-search-go-button', $form); + $go = $('button.crm-search-go-button', $form); var $selectedOption = $(this).find(':selected'); if (!$selectedOption.val()) { // do not blank refresh the empty option.