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

js error: ezjs_toggleCheckboxes is not defined in front edit

    XMLWordPrintable

Details

    Description

      Hi. Just retested. If you install fuji with ezflow package (with content but probably also with other packages) it seems ezjsselection is not loaded anywhere and this leads in a js error when trying to use front edition and toogle checkboxes functionality, for example when trying to add nodes to a ez flow block.

      I think the problem comes because ezjsselection.js file it's only added to the backend. see design.ini file

      BackendJavaScriptList[]=tools/ezjsselection.js
      

      The solution could be add it to the FrontendJavaScriptList too, but this will load this js all the time, when probably it's not needed, so we can also choose to add

      {ezscript_require( 'tools/ezjsselection.js' )}
      

      to the content/browse.tpl template, and so, only load it when needed.

      what do you think?
      Cheers.

      Steps to reproduce

      Do a fresh install of ez publish fuji community edition
      log in the front site
      edit your home
      try to add some items to one of the blocks
      in the browse template click the invert selection button.

      Attachments

        Activity

          People

            unknown unknown
            desorden desorden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: