Skip to content

Instantly share code, notes, and snippets.

@devoltt
Last active December 5, 2021 22:45
Show Gist options
  • Save devoltt/a9b2a4cc44286d2677aaa0de6132d1fd to your computer and use it in GitHub Desktop.
Save devoltt/a9b2a4cc44286d2677aaa0de6132d1fd to your computer and use it in GitHub Desktop.
/*
* Код помещается в консоль браузера для отладки кастомных JS событий битрикс.
*/
BX.onCustomEvent = function(eventObject, eventName, arEventParams, secureParams) {
var result = {
'eventObject': eventObject,
'eventName': eventName,
'arEventParams': arEventParams,
'secureParams': secureParams
};
console.log(result);
};
/**
* Событие обновление грида
*/
BX.addCustomEvent(window, 'BX.Main.grid:paramsUpdated', function(){
var extension = new BX.Intervolga.Galvent.LeadFormExt();
extension.setHandlers();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment