When I add the field to the display so it is visible I get this error on the node page:
TypeError: 'undefined' is not a function (evaluating '$.cookie('radioactivity_' + data['checksum'], null)')

See screenshot for more details.

What can cause this?

CommentFileSizeAuthor
screenshot.png76.79 KBmadeby

Comments

madeby’s picture

Just wanted to add that I have set a default value on new content. Here I can see that the decay process is working and that it is loosing it's value over time.

It seems to be an error related to the JavaScript/ajax that is supposed to add "energy" upon node view.

neomenlo’s picture

I have observed that when a node is loaded by ajax the radioactivity field does not automatically increment.

Does content loaded normally work as expected for you?

tcmug’s picture

Assigned: Unassigned » tcmug
Status: Active » Needs review

Should be fixed in lastest version in repo :)

(edit to add explanation)

This totally passed my checks since - for some reason - my dev drupal installation had the core jquery cookie library loaded by default. I added

drupal_add_library('system', 'jquery.cookie');

and the problem is gone.

tcmug’s picture

Status: Needs review » Closed (fixed)

Closing this