Skip to content

Instantly share code, notes, and snippets.

View Pum-purum's full-sized avatar
🏠
Working from home

Андрей Pum-purum

🏠
Working from home
  • Russia
View GitHub Profile
@Pum-purum
Pum-purum / feed_debug.txt
Created November 18, 2019 11:57
iblock element update event
Array
(
[CODE] => 7701233065
[MODIFIED_BY] => 5
[NAME] => ООО Для примера
[PROPERTY_VALUES] => Array
(
[88] => ООО Для примера
[89] => ООО Для примера
[91] => Array
@Pum-purum
Pum-purum / handlers_debug.txt
Created December 2, 2019 06:15
OnAfterIBlockElementDelete fields
Array
(
[ID] => 477
[IBLOCK_ID] => 24
[WF_PARENT_ELEMENT_ID] =>
[WF_STATUS_ID] => 1
[PREVIEW_PICTURE] =>
[DETAIL_PICTURE] =>
[EXTERNAL_ID] => 477
[CODE] => o2wqynSU6Fqs
@Pum-purum
Pum-purum / script.js
Created December 3, 2019 12:25
foreach in JS
for (value of this.IDS) {
$('#' + value).barrating({
theme: 'fontawesome-stars',
showSelectedRating: false,
initialRating: this,
onSelect: function (value, text, event){
var obj = this.$elem[0];
if (value == 5) {
var companyID = $(obj).data('companyid');
_this.allCorrect(value, companyID)
@Pum-purum
Pum-purum / handlers_debug.txt
Created December 10, 2019 08:51
OnAfterIblockElementAdd
Array
(
[CREATED_BY] => 41
[IBLOCK_ID] => 23
[PROPERTY_VALUES] => Array
(
[COMPANY] => 484
[PROBLEMS] => Array
(
[0] => 7