|
|
@ -42,8 +42,7 @@ function request_textpreview_update() {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
'color': '#ee0000',
|
|
|
|
'color': '#ee0000',
|
|
|
|
'lines': data['trigger_line_numbers']
|
|
|
|
'lines': data['trigger_line_numbers']
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]).highlightLines([
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
'color': '#757575',
|
|
|
|
'color': '#757575',
|
|
|
|
'lines': data['ignore_line_numbers']
|
|
|
|
'lines': data['ignore_line_numbers']
|
|
|
@ -81,8 +80,8 @@ $(document).ready(function () {
|
|
|
|
$('body').toggleClass('preview-text-enabled')
|
|
|
|
$('body').toggleClass('preview-text-enabled')
|
|
|
|
request_textpreview_update();
|
|
|
|
request_textpreview_update();
|
|
|
|
const method = $('body').hasClass('preview-text-enabled') ? 'on' : 'off';
|
|
|
|
const method = $('body').hasClass('preview-text-enabled') ? 'on' : 'off';
|
|
|
|
$('textarea:visible')[method]('keyup blur', request_textpreview_update.throttle(1000));
|
|
|
|
$('#filters-and-triggers textarea')[method]('blur', request_textpreview_update.throttle(1000));
|
|
|
|
$('input:visible')[method]('keyup blur change', request_textpreview_update.throttle(1000));
|
|
|
|
$('#filters-and-triggers input')[method]('change', request_textpreview_update.throttle(1000));
|
|
|
|
$("#filters-and-triggers-tab")[method]('click', request_textpreview_update.throttle(1000));
|
|
|
|
$("#filters-and-triggers-tab")[method]('click', request_textpreview_update.throttle(1000));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
$('.minitabs-wrapper').miniTabs({
|
|
|
|
$('.minitabs-wrapper').miniTabs({
|
|
|
|