Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-28235

Javascript Minifier failing With Liferay 6.0 Upgrade

    Details

      Description

      I have recently upgraded from Liferay 5.2.3 to 6.0 and my jQuery is also upgraded to 1.7.

      The Javascript minifier started failing for the JS code that was working fine with the previous minifier that came part of Liferay 5.2.3.

      For example, the below line of code:

      jQuery('a[id^="bannerLink"]').attr('href', links[cur]).attr('target', targets[cur]);

      is getting passed through the YUI compressor as:

      jQuery('a[id^="bannerLink"]').attr('href', links[cur]).attr('target', targets[cur]);

      When I embed double quotes within single quotes I am getting this issue. The error it says Javascript Minifier: syntax error

      Please let me know how to fix this issue.

        Attachments

          Activity

            People

            Assignee:
            mika.koivisto Mika Koivisto (Inactive)
            Reporter:
            smohanasundaram Srividhya (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              9 years, 13 weeks, 4 days ago

                Packages

                Version Package
                6.0.6 GA