- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
switch (field.type) {
case 'checkbox':
case 'notification':
if (field.type == 'notification') {
fieldData.element.addClass('field-notification');
$('<span class="notification-button" data-action="notification">').text('Принять').appendTo(body).on(
'click', function () {
_class.wrapper.removeClass('notification');
_class.notification.wrapper.removeClass('notification-active');
_class.fields[index - 1].changeStatus();
$Mediator.fire({
name: 'active:filter',
target: _class.fields[0].filter
});
});
}
break;
}