Commit 6c8555a6 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлен скрипт для модуля

parent 5978dccd
$(document).on('click', 'a.add_condition', function() {
var id = $(this).data('id');
var container = $(this).closest('div.btn-group').parent().children('div.conditions-block');
$.ajax({
url: '/triggers/trigger-admin/getconditionhtml',
data: {
id: id
},
method: 'GET',
success: function(response) {
var result = JSON.parse(response);
container.append(result);
}
})
});
$(document).on('click', 'button.add-and-condition', function() {
var container = $(this).closest('table').children('tbody');
$.ajax({
url: '/triggers/trigger-admin/getandconditionhtml',
success: function(response) {
var result = JSON.parse(response);
container.append(result);
}
})
});
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment