Lines 395-409
Link Here
|
395 |
$('a[name="field_regex"]').click(function() { |
395 |
$('a[name="field_regex"]').click(function() { |
396 |
var id = $(this).attr('id'); |
396 |
var id = $(this).attr('id'); |
397 |
var editor = $(this).parent().find("[name='field_value']"); |
397 |
var editor = $(this).parent().find("[name='field_value']"); |
|
|
398 |
var tag_editor = $(this).parent().find(".buttonDot"); |
398 |
var regex = $(this).parent().find("[name='regex_fields']"); |
399 |
var regex = $(this).parent().find("[name='regex_fields']"); |
399 |
var disable_input = $(this).parent().find("[name='disable_input']"); |
400 |
var disable_input = $(this).parent().find("[name='disable_input']"); |
400 |
if ($(this).html() == 'RegEx') { |
401 |
if ($(this).html() == 'RegEx') { |
401 |
$(editor).hide(); |
402 |
$(editor).hide(); |
402 |
$(regex).show(); |
403 |
$(regex).show(); |
|
|
404 |
$(tag_editor).hide(); |
403 |
$(this).html('Text'); |
405 |
$(this).html('Text'); |
404 |
$(disable_input).prop('disabled', true); |
406 |
$(disable_input).prop('disabled', true); |
405 |
} else { |
407 |
} else { |
406 |
$(editor).show(); |
408 |
$(editor).show(); |
|
|
409 |
$(tag_editor).show(); |
407 |
$(regex).hide(); |
410 |
$(regex).hide(); |
408 |
$(this).html('RegEx'); |
411 |
$(this).html('RegEx'); |
409 |
$(disable_input).prop('disabled', false); |
412 |
$(disable_input).prop('disabled', false); |
410 |
- |
|
|