.parent().css(\'text-align\', \'center\').find(\'.ui-button-text\').css({\'padding-top\': \'4px\', \'padding-bottom\': \'4px\'}) ; } e.preventDefault(); }); $(\'.crm-quickSearchField\').click(function() { var label = $(this).text(); var value = $(\'input\', this).val(); // These fields are not supported by advanced search if (value === \'first_name\' || value === \'last_name\') { value = \'sort_name\'; } $(\'#sort_name_navigation\').attr({name: value, placeholder: label}).focus(); }); // redirect to view page if there is only one contact $(\'#id_search_block\').on(\'submit\', function() { var $menu = $(\'#sort_name_navigation\').autocomplete(\'widget\'); if ($(\'li.ui-menu-item\', $menu).length === 1) { var cid = $(\'li.ui-menu-item\', $menu).data(\'ui-autocomplete-item\').value; document.location = CRM.url(\'civicrm/contact/view\', {reset: 1, cid: cid}); return false; } }); // Close menu after selecting an item $(\'#root-menu-div\').on(\'click\', \'a\', $.Menu.closeAll); }); $(\'#civicrm-menu\').menuBar({arrowSrc: CRM.config.resourceBase + \'packages/jquery/css/images/arrow.png\'}); })(CRM.$);'; ?> <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?>
$this->_tag_stack[] = array('ts', array()); $_block_repeat = true; smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat); while ($_block_repeat) { ob_start(); ?> Do you want to continue?<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat = false; echo smarty_block_ts($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack); ?> </div> <div class="crm-submit-buttons"> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "CRM/common/formButtons.tpl", 'smarty_include_vars' => array('location' => 'bottom'))); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars); ?> </div> </div> <?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat = false; echo smarty_block_crmScope($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat); } array_pop($this->_tag_stack);