Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-2666

Defining an AMD package with a different main doesn't work with the WebFramework config

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.2.e Community, 4.2.f Community
    • Fix Version/s: 5.0
    • Component/s: Web Scripts and Surf
    • Labels:
    • Environment:
      Tomcat 7, Windows 8.1, MySQL

      Description

      Hi,

      The following doesn't work in Alfresco:
      <config evaluator="string-compare" condition="WebFramework">
      <web-framework>
      <dojo-pages>
      <packages>
      <package name="jquery" location="jquery" main="jquery-1.11.1.min"/>
      </packages>
      </dojo-pages>
      </web-framework>
      </config>

      The main attribute in the package is not read.
      The equivalent dojo js command is: "dojoConfig.packages.push(

      {name: 'jquery', location: 'jquery', main: 'jquery-1.11.1.min'}

      );"
      or require({packages: [

      {name: 'jquery', location: 'jquery', main: 'jquery-1.11.1.min'}

      ]});

      At this moment it tries to find the library as /res/jquery/jquery.js.

        Attachments

          Activity

            People

            • Assignee:
              closedissues Closed Issues
              Reporter:
              tmalik Tahir Malik
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: