Skip to content

Commit

Permalink
Change glossary to always call json view from the portal url
Browse files Browse the repository at this point in the history
  • Loading branch information
rodfersou committed Sep 9, 2015
1 parent 4567f48 commit a3d9b33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
1.0a2 (unreleased)
------------------

- Change glossary to always call json view from the portal url (closes `#22`).
[rodfersou]

- A new rich text field was added to the Glossary content type.
[hvelarde]

Expand Down Expand Up @@ -36,3 +39,4 @@ Changelog
.. _`#12`: https://github.com/collective/collective.cover/issues/12
.. _`#14`: https://github.com/collective/collective.cover/issues/14
.. _`#18`: https://github.com/collective/collective.cover/issues/18
.. _`#22`: https://github.com/collective/collective.cover/issues/22
2 changes: 1 addition & 1 deletion src/collective/glossary/browser/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

<browser:page
name="glossary"
for="*"
for="plone.app.layout.navigation.interfaces.INavigationRoot"
class=".views.JsonView"
permission="zope2.View"
layer="collective.glossary.interfaces.IGlossaryLayer"
Expand Down
2 changes: 1 addition & 1 deletion src/collective/glossary/browser/static/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(function(){
$('#content-core').glossarizer({
sourceURL: '@@glossary',
sourceURL: portal_url + '/@@glossary',
callback: function() {
// Callback fired after glossarizer finishes its job
new tooltip();
Expand Down

0 comments on commit a3d9b33

Please sign in to comment.