, 'draft_autosave_timeout': <?php echo json_encode(user_config_option('draft_autosave_timeout')); ?> , 'drag_drop_prompt': <?php echo json_encode(user_config_option('drag_drop_prompt')); ?> , 'mail_drag_drop_prompt': <?php echo json_encode(user_config_option('mail_drag_drop_prompt')); ?> }; Ext.Ajax.timeout = <?php echo get_max_execution_time() * 1100; ?> ; og.musicSound = new Sound(); og.systemSound = og.musicSound;//new Sound(); var quickAdd = new og.QuickAdd({renderTo:'quickAdd'}); var searchbutton = new Ext.Button({renderTo:'searchboxButton', text: lang('search'), type:'submit', handler:function(){document.getElementById('searchButtonReal').click()} }); <?php if (!defined('DISABLE_JS_POLLING') || !DISABLE_JS_POLLING) { ?> og.skipEmailPolling = 0; // check if feng is running on active tab
'access_member_after_add_remember': <?php echo user_config_option('access_member_after_add_remember') ? '1' : '0' ?>, 'listing_preferences': [] }; <?php $listing_preferences = ContactConfigOptions::getOptionsByCategoryName('listing preferences'); foreach ($listing_preferences as $lp) { if (str_starts_with($lp->getName(), 'lp_dim_')) { $dcode = str_replace('lp_dim_', '', str_replace('_show_as_column', '', $lp->getName())); $dim = Dimensions::findByCode($dcode); ?>og.preferences['listing_preferences']['<?php echo 'lp_dim_'.$dim->getId().'_show_as_column' ?>'] = <?php echo user_config_option($lp->getName()) ? '1' : '0'?>;<?php } } ?> og.breadcrumbs_skipped_dimensions = []; Ext.Ajax.timeout = <?php echo get_max_execution_time()*1100 // give a 10% margin to PHP's timeout ?>; og.musicSound = new Sound(); og.systemSound = new Sound(); var quickAdd = new og.QuickAdd({renderTo:'quickAdd'}); <?php if (!defined('DISABLE_JS_POLLING') || !DISABLE_JS_POLLING) { ?> setInterval(function() { og.openLink(og.getUrl('object', 'popup_reminders'), { hideLoading: true, hideErrors: true, preventPanelLoad: true }); }, 60000); <?php } ?>