{*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*}
{literal}
<script type="text/javascript" >
-cj( function( ) {
+CRM.$(function($) {
{/literal}
{if $generateAjaxRequest}
{foreach from=$ajaxRequestBlocks key="blockName" item="instances"}
async : false,
success : function(html){
cj(fname).after(html);
- if ((typeof(Drupal) != 'undefined') && Drupal.attachBehaviors) {
- Drupal.attachBehaviors(cj('#' + blockName + '_Block_'+ currentInstance)[0]);
- }
+ cj(fname).next().trigger('crmLoad');
}
});