After enabe, I have some JS error on a node/add/ page.


TypeError: Drupal.Nodejs is undefined
[Bei diesem Fehler anhalten] 	

Drupal.Nodejs.callbacks.viewsNodejs = {

js aggregation is enabled

CommentFileSizeAuthor
#4 views-nodejs-2064935-4.patch3.36 KBchellman

Comments

andrewsizz’s picture

Hi, what version of node.js integration module and views module?

bennos’s picture

views 7.x-3.7
nodejs integration 7.x-1.6

andrewsizz’s picture

Status: Active » Postponed (maintainer needs more info)

HI, can't reproduce this issue (
Can you provide more info? Are you sure nodejs correctly setup on your server? What version of drupal you use? Which else modules you use on site(maybe conflict)?

chellman’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new3.36 KB

I think this error, or errors like it, can come up if nodejs is configured to only load on certain pages. I think checking if Drupal.Nodejs and Drupal.Nodejs.callbacks are actually defined before adding the callback can help with this. I've attached a patch for this.

Anonymous’s picture

patch in #4 looks like the correct approach, though i didn't test it.

andrewsizz’s picture

look good, lat me check

  • AndrewsizZ committed fde259b on 7.x-1.x authored by chellman
    Issue #2064935 by chellman, AndrewsizZ, bennos, beejeebus: JS problems
    
andrewsizz’s picture

Status: Needs review » Fixed

works good for me, thanks, commited!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.