Bug 27929: (QA follow-up) Hide tag editor on regex
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit a2f8ba3112)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
5ab107550e
commit
9e35d026a0
|
|
@ -41,15 +41,18 @@ $(document).ready(function(){
|
|||
$('a[name="field_regex"]').click(function() {
|
||||
var id = $(this).attr('id');
|
||||
var editor = $(this).parent().find("[name='field_value']");
|
||||
var tag_editor = $(this).parent().find(".buttonDot");
|
||||
var regex = $(this).parent().find("[name='regex_fields']");
|
||||
var disable_input = $(this).parent().find("[name='disable_input']");
|
||||
if ($(this).html() == 'RegEx') {
|
||||
$(editor).hide();
|
||||
$(regex).show();
|
||||
$(tag_editor).hide();
|
||||
$(this).html('Text');
|
||||
$(disable_input).prop('disabled', true);
|
||||
} else {
|
||||
$(editor).show();
|
||||
$(tag_editor).show();
|
||||
$(regex).hide();
|
||||
$(this).html('RegEx');
|
||||
$(disable_input).prop('disabled', false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue