Hello,

Thank you very much for your work on this module.

I am using the advagg module to minify my site js and css.
When flushing/rebuilding the cache, I have the following error logged:

JSMinPlus had a possible error minifying: modules/contrib/age_field_formatter/js/age_field_formatter.js. Using uncompressed version. Error: Parse error: Unexpected token; token : expected in file '[inline]' on line 3

Checking the age_field_formatter.js code in a javascript compiler confirms that there is a parse error.

The faulty line is the one below in bold:

(function(Drupal, $) {
Drupal.behaviors.ageFieldFormatter = {
attach(context) {
// On form change, show or hide the Date/time format field.
$(".age-format-select").change(function() {

Any idea how this can be corrected?

Thanks!
Regards

Comments

Arno2Mars created an issue. See original summary.

xmacinfo’s picture

Thank you for your report.

To help speed up fixing this bug, you can create a issue fork, green button above, or submit a patch file, which the older Drupal way to submit code changes.

arno2mars’s picture

Thanks xmacinfo for your quick feedback.

In fact I have been switching the advagg js minifier to JSqueeze (was JSmin+), and this simple change allowed to remove all warnings in my log (looks like JSmin+ is old and does not recognize all last javascript vocabulary).
Sorry for the stupid request, and issue can be closed.

Regards,

xmacinfo’s picture

Status: Active » Closed (works as designed)