CRM-13863 Fix group popups
authorColeman Watts <coleman@civicrm.org>
Tue, 28 Jan 2014 00:16:23 +0000 (16:16 -0800)
committerColeman Watts <coleman@civicrm.org>
Tue, 28 Jan 2014 00:20:37 +0000 (16:20 -0800)
templates/CRM/Group/Form/Edit.tpl
templates/CRM/Group/Form/Search.tpl

index 17879540755e6936d233a206825b92cc8d44d422..9183f6256e11df0d2e135deac8fda9f52645bb7d 100644 (file)
@@ -27,8 +27,8 @@
 <div class="crm-block crm-form-block crm-group-form-block">
     <div id="help">
   {if $action eq 2}
-      {capture assign=crmURL}{crmURL p="civicrm/group/search" q="reset=1&force=1&context=smog&gid=`$group.id`"}{/capture}
-      {ts 1=$crmURL}You can edit the Name and Description for this group here. Click <a href='%1'>Contacts in this Group</a> to view, add or remove contacts in this group.{/ts}
+      {capture assign=crmURL}class="no-popup" href="{crmURL p="civicrm/group/search" q="reset=1&force=1&context=smog&gid=`$group.id`"}"{/capture}
+      {ts 1=$crmURL}You can edit the Name and Description for this group here. Click <a %1>Contacts in this Group</a> to view, add or remove contacts in this group.{/ts}
   {else}
       {ts}Enter a unique name and a description for your new group here. Then click 'Continue' to find contacts to add to your new group.{/ts}
   {/if}
     <div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
     {if $action neq 1}
   <div class="action-link">
-      <a href="{$crmURL}">&raquo; {ts}Contacts in this Group{/ts}</a>
+      <a class="no-popup" href="{$crmURL}">&raquo; {ts}Contacts in this Group{/ts}</a>
       {if $group.saved_search_id}
           <br />
     {if $group.mapping_id}
-        <a href="{crmURL p="civicrm/contact/search/builder" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
+        <a class="no-popup" href="{crmURL p="civicrm/contact/search/builder" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
     {elseif $group.search_custom_id}
-                    <a href="{crmURL p="civicrm/contact/search/custom" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
+                    <a class="no-popup" href="{crmURL p="civicrm/contact/search/custom" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
     {else}
-        <a href="{crmURL p="civicrm/contact/search/advanced" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
+        <a class="no-popup" href="{crmURL p="civicrm/contact/search/advanced" q="reset=1&force=1&ssID=`$group.saved_search_id`"}">&raquo; {ts}Edit Smart Group Criteria{/ts}</a>
     {/if}
 
       {/if}
index 1bd20864837c931681c923af6ff5a66979fe5a63..cba5e072b1b1902928f85a114d0a95dd63264f87 100644 (file)
@@ -102,9 +102,8 @@ cj(function($) {
   });
   // Add livePage functionality
   $('#crm-container').on('click', 'a.button, a.action-item[href*="action=update"], a.action-item[href*="action=delete"]', function() {
-    CRM.loadForm($(this).attr('href'), {
-      openInline: 'a:not([href="#"])'
-    }).on('crmFormSuccess', function(e, data) {
+    CRM.loadForm($(this).attr('href'))
+      .on('crmFormSuccess', function(e, data) {
         // Refresh datatable when form completes
         $('#crm-group-selector').dataTable().fnDraw();
       });