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