Giter Site home page Giter Site logo

Comments (5)

pbauer avatar pbauer commented on June 30, 2024

eea.facetednavigation depends on eea.jquery which provides a jquery.tree.js package (originally from http://jstree.com). This package is in conflict with the jqtree module that mockup uses (Products/CMFPlone/static/components/jqtree/tree.jquery.js, which is http://mbraak.github.io/jqTree/ and is used for related items) as they both register against the global $.tree jquery plugin.

from eea.jquery.

dals83 avatar dals83 commented on June 30, 2024

I am having the exact same problem. Any solution to this yet?

from eea.jquery.

tokewf avatar tokewf commented on June 30, 2024

Using another name than $.tree in <plone dir>/eggs/eea.jquery-9.8-py2.7.egg/eea/jquery/plugins/jstree/jquery.tree.js solves the problem. Modifying the egg directly is incredibly hacky but works.

For version 9.8 of eea.jquery, occurrences of .tree on the following line numbers should be changed to something unique, for instance .jstree:

17
165 twice
171
183
307
372
616
782
938
1179
1180
1567 twice
1629
1637 twice
1638 twice
1819

Furthermore, eea.facetednavigation needs to be modified to reflect the new name. For version 10.3, the file <plone dir>/eggs/eea.facetednavigation-10.3-py2.7.egg/eea/facetednavigation/widgets/path/tree.js will have to be modified on line 75, where .tree should be replaced with .jstree.

Please note that .tree may occur elsewhere in both modified files, e.g. in references to jquery.tree.js or as CSS class names. These occurrences should not be modified.

Finally, to make the changes appear on the site, I had to go to the resource registry at http://yoursite/@@resourceregistry-controlpanel, click on faceted-jquery, remove jstree from the resources field, save, add jstree again and save.

from eea.jquery.

alecghica avatar alecghica commented on June 30, 2024

@tokewf a pull request is welcomed!

from eea.jquery.

avoinea avatar avoinea commented on June 30, 2024

Fixed and released:

from eea.jquery.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.