Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23071

Clicking on the eZIE edit button doesn't do anything

    XMLWordPrintable

    Details

    • Sprint:
      Castor Core S2

      Description

      eZIE does not work on the frontend: when an image attribute "Edit" button is clicked, nothing happens.

      In addition, the following error can be observed in the debug console (tested under Firefox 30)

      TypeError: $(...).ezie is not a function
      
      $(".ezieEditButton").ezie();
      
      Steps to reproduce:
      1. On the frontend, edit an image object
      2. Click the image's "Edit" button
      Further info:

      The following shows the relevant section of included scripts (dev mode)

          <script type="text/javascript" src="/js/f110395_yui-min_1.js"></script>
          <script type="text/javascript" src="/js/f110395_jquery-1.10.2.min_2.js"></script>
          <script type="text/javascript" src="/js/f110395_jquery-ui-1.10.3.custom.min_3.js"></script>
      ...
      
                  <script type="text/javascript" src="/extension/ezjscore/design/standard/javascript/jquery-1.10.2.min.js"></script>
                  <script type="text/javascript" src="/extension/ezjscore/design/standard/javascript/jquery-1.10.2.min.js"></script>
                  <script type="text/javascript" src="/extension/ezjscore/design/standard/javascript/jquery-migrate-1.1.1.min.js"></script>
                  ...
                  <script type="text/javascript" src="/extension/ezie/design/standard/javascript/jquery.ezie.js"></script>
                  ...
                  <script type="text/javascript" src="/extension/ezie/design/standard/javascript/ezie.js"></script>
                  <script type="text/javascript" src="/extension/ezjscore/design/standard/javascript/jquery-1.10.2.min.js"></script>
      

      The problem comes from the fact that one last jquery is included at the bottom, after the jquery.ezie.js plugin that extends `$` with `ezie()`.
      This last jquery inclusion appears to reset the jquery prototype.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h