Lines 23-34
$(document).ready(function(){
Link Here
|
23 |
$("input[name='disable_input']").click(function() { |
23 |
$("input[name='disable_input']").click(function() { |
24 |
var row = $(this).attr("id"); |
24 |
var row = $(this).attr("id"); |
25 |
row = row.replace("row","hint"); |
25 |
row = row.replace("row","hint"); |
26 |
var editor = $(this).parent().find("[name='field_value']"); |
26 |
var todisable = $(this).parent().find("[name='field_value'],[name='tag'],[name='subfield'],[name='mandatory']"); |
27 |
if ($(this).is(":checked")) { |
27 |
if ($(this).is(":checked")) { |
28 |
$(editor).prop('disabled', true); |
28 |
$(todisable).prop('disabled', true); |
29 |
$("#"+row).html(_("This subfield will be deleted")); |
29 |
$("#"+row).html(_("This subfield will be deleted")); |
30 |
} else { |
30 |
} else { |
31 |
$(editor).prop('disabled', false); |
31 |
$(todisable).prop('disabled', false); |
32 |
$("#"+row).html(""); |
32 |
$("#"+row).html(""); |
33 |
} |
33 |
} |
34 |
}); |
34 |
}); |
35 |
- |
|
|