Comments (5)
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.
I am having the exact same problem. Any solution to this yet?
from eea.jquery.
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.
@tokewf a pull request is welcomed!
from eea.jquery.
Fixed and released:
from eea.jquery.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eea.jquery.