search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Bubble error on production

Asked by Ilan
7 years ago.

Hello I have updated the version as I saw on your previous answers but still have error when hovering on the scheduler cells. Its happening only on production. thanks

Comment posted by Anonymous
7 years ago.

this is the error that I'm getting :
Uncaught ReferenceError: s is not defined
at DayPilot.Bubble.show (app-0c134acd3f.js:26)
at app-0c134acd3f.js:28

Comment posted by Dan Letecky [DayPilot]
7 years ago.

What version of DayPilot do you use?

The following demo which uses version 8.4.2911 (the latest official release) seems to work fine:
https://javascript.daypilot.org/demo/scheduler/rowheaderactiveareas.html

Code sample:

dp.cellBubble = new DayPilot.Bubble({onLoad:function(args) {
  var cell = args.source;
  args.html = cell.start.toString("d MMMM yyyy");
}});
Comment posted by ilan
7 years ago.

That's the version that I'm using: 2911

this is the function for showing the bubble -

dc.cellBubble = new DayPilot.Bubble({
onLoad: function (args) {
var cellStart = args.source.start.toString('d MMMM yyyy');
args.html = cellStart + " " + args.source.resource;
}
});

and again, the weird thing is that its work fine locally (I have 3 kinds of bubbles) but on production its break.
thinking about adding tooltip instead.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.