CRM-13383, add crmaselect widget to bounce type option
authormonishdeb <monish.deb@webaccess.co.in>
Wed, 18 Sep 2013 06:38:39 +0000 (12:08 +0530)
committermonishdeb <monish.deb@webaccess.co.in>
Wed, 18 Sep 2013 06:38:39 +0000 (12:08 +0530)
----------------------------------------
* CRM-13383: Add Bounce Type option in Advance Search/Mailing section
  http://issues.civicrm.org/jira/browse/CRM-13383

CRM/Mailing/BAO/Query.php
templates/CRM/Mailing/Form/Search/Common.tpl

index 4aa0b07e7e81bb8609a7336ef11e5c8bf7acbc0b..c9e623b1de5153979fcf4750c3de98a282bb57de 100644 (file)
@@ -382,7 +382,9 @@ class CRM_Mailing_BAO_Query {
       'CRM_Mailing_Event_DAO_Bounce', 'bounce_type_id',
       array('keyColumn' => 'id', 'labelColumn' => 'name')
     );
-    $form->add('select', 'mailing_bounce_types', ts('Bounce Types'), $mailingBounceTypes, FALSE, array('multiple' => 'multiple'));
+    $form->add('select', 'mailing_bounce_types', ts('Bounce Types'), $mailingBounceTypes, FALSE,
+      array('id' => 'mailing_bounce_types', 'multiple' => 'multiple', 'title' => ts('- select -'))
+    );
 
     // event filters
     $form->addRadio('mailing_delivery_status', ts('Delivery Status'), CRM_Mailing_PseudoConstant::yesNoOptions('delivered'));
index ffb3e41648d235ebd65e9b072874b52511fedf72..4e170c61791c584442a0b4e3b92bab362d0b81b9 100644 (file)
   <br />
   {$form.mailing_bounce_types.label}
   {$form.mailing_bounce_types.html}
+  {literal}
+    <script type="text/javascript">
+      cj("select#mailing_bounce_types").crmasmSelect({
+        addItemTarget: 'bottom',
+        animate: false,
+        highlight: true,
+        sortable: true
+      });
+    </script>
+   {/literal}
   </td>
   <td>
   {$form.mailing_open_status.label}