> >
BX.Currency.setCurrencies([{'CURRENCY':'RUB','FORMAT':{'FORMAT_STRING':'# руб.','DEC_POINT':'.','THOUSANDS_SEP':' ','DECIMALS':2,'THOUSANDS_VARIANT':'S','HIDE_ZERO':'Y'}}]); var viewedCounter = { path: '/bitrix/components/bitrix/catalog.element/ajax.php', params: { AJAX: 'Y', SITE_ID: "s1", PRODUCT_ID: "4139", PARENT_ID: "4139" } }; BX.ready( BX.defer(function(){ $('body').addClass('detail_page'); BX.ajax.post( viewedCounter.path, viewedCounter.params ); }) ); -> > $(".bottom_submenu ul.submenu li").click(function() { $(".bottom_submenu ul.submenu li").removeClass("selected"); $(this).addClass("selected"); }); $(".bottom_submenu ul.submenu li").click(function() { $(".bottom_submenu ul.submenu li").removeClass("selected"); $(this).addClass("selected"); }); $(".bottom_submenu ul.submenu li").click(function() { $(".bottom_submenu ul.submenu li").removeClass("selected"); $(this).addClass("selected"); }); function jsPriceFormat(_number){ BX.Currency.setCurrencyFormat('RUB', {'CURRENCY':'RUB','LID':'ru','FORMAT_STRING':'# руб.','FULL_NAME':'Рубль','DEC_POINT':'.','THOUSANDS_SEP':' ','DECIMALS':'2','THOUSANDS_VARIANT':'S','HIDE_ZERO':'Y','CREATED_BY':'','DATE_CREATE':'2015-12-17 23:00:35','MODIFIED_BY':'0','TIMESTAMP_X':'2016-07-14 11:48:13'}); return BX.Currency.currencyFormat(_number, 'RUB', true); } $(document).ready(function(){ });