Merge pull request #9428 from jitendrapurohit/CRM-19662
[civicrm-core.git] / js / crm.searchForm.js
index 2e2a6cd49238ad287464657c23ebe9a231c4f4f3..42a371dcecf42d18e90d97dae3038d2992d098b7 100644 (file)
         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');
   }
 
   /**
         }
         else if (!$(this).find(':selected').data('supports_modal')) {
           $go.click();
+          $('#task').val('').select2('val', '');
         }
         // The following code can load the task in a popup, however not all tasks function correctly with this
         // So it's a per-task opt-in mechanism.