- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/internals/input.php
- Класс: Bitrix\Sale\Internals\Input\Manager
- Вызов: Manager::initJs
static function initJs()
{
static $done = false;
if (! $done)
{
$done = true;
if (Loader::includeModule('location'))
{
\Bitrix\Main\UI\Extension::load('sale.address');
}
\CJSCore::RegisterExt('input', array(
'js' => [
'/bitrix/js/sale/input.js'
],
'lang' => '/bitrix/modules/sale/lang/'.LANGUAGE_ID.'/lib/internals/input.php',
));
\CJSCore::Init(array('input'));
print('');
$GLOBALS['APPLICATION']->IncludeComponent("bitrix:sale.location.selector.".\Bitrix\Sale\Location\Admin\LocationHelper::getWidgetAppearance(), "", array(
"ID" => '',
"CODE" => '',
"INPUT_NAME" => 'SALE_LOCATION_SELECTOR_RESOURCES',
"PROVIDE_LINK_BY" => 'code',
"FILTER_BY_SITE" => 'Y',
"SHOW_DEFAULT_LOCATIONS" => 'Y',
"SEARCH_BY_PRIMARY" => 'Y',
"JS_CONTROL_GLOBAL_ID" => 'SALE_LOCATION_SELECTOR_RESOURCES',
//"INITIALIZE_BY_GLOBAL_EVENT" => 'sale-event-never-happen',
"USE_JS_SPAWN" => 'Y'
),
false,
array('HIDE_ICONS' => 'Y')
);
print('
');
}
}