Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Found a line of js that wasn't used.
var checkval = function (inval) {
// Do loose comparisons to support things like "true", "1",
// etc.
if (dependency.attr('type') === 'radio') {
var val = $('[name="' + dependency.attr('name') + '"]:checked').val();
return val == inval;
}
else if (dependency.attr('type') === 'checkbox') {
return dependency.is(':checked') && inval == dependency.val();
}
else {
return dependency.val() == inval;
}
return false; //LINE REMOVED
};
Comment | File | Size | Author |
---|---|---|---|
#2 | backup_migrate-deleted-js-line-3201469-2.patch | 432 bytes | Jyaai |
Comments
Comment #2
Jyaai CreditAttribution: Jyaai commentedComment #3
DamienMcKennaThat seems reasonable.
Comment #4
DamienMcKennaCommitted.