CRM-17493 - Fix datatable when popup forms disabled
authorColeman Watts <coleman@civicrm.org>
Wed, 4 Nov 2015 22:15:01 +0000 (17:15 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 4 Nov 2015 22:15:01 +0000 (17:15 -0500)
templates/CRM/Custom/Page/Option.tpl

index befad67b41c57bb4da76d8f9e7cd29e1fb32742d..e71cc2dcc979b390456e651fdbf8cd381ca08040 100644 (file)
@@ -58,7 +58,7 @@
 
         function buildOptions() {
           var sourceUrl = {/literal}'{crmURL p="civicrm/ajax/optionlist" h=0 q="snippet=4&fid=$fid&gid=$gid"}'{literal};
-          var $context = $('.crm-ajax-container');
+          var $context = $('.crm-container');
           var ZeroRecordText = {/literal}'{ts escape="js"}None found.{/ts}'{literal};
 
           crmOptionSelector = $('table.crm-option-selector', $context).dataTable({