Fab, that worked. Thanks. On Friday, 12 October 2018 16:21:56 UTC+1, Auchtermuchty Weather wrote: > > Thanks will try this, though strangely it used to generate. > > On Friday, 12 October 2018 15:53:06 UTC+1, Thomas Keffer wrote: >> >> Oh, and you're going to have the same problem with 'this'. So, you want >> >> \$(document).delegate('*[data-toggle="lightbox"]', 'click', >> function(event) { >> event.preventDefault(); >> \$(this).ekkoLightbox(); >> }); >> >> On Fri, Oct 12, 2018 at 7:51 AM Thomas Keffer <tke...@gmail.com> wrote: >> >>> I suspect the problem is a collision between jQuery and Cheetah. >>> >>> Your index.html.tmpl template contains the phrase >>> >>> $(document).delegate('*[data-toggle="lightbox"]', 'click', >>> function(event) { >>> event.preventDefault(); >>> $(this).ekkoLightbox(); >>> }); >>> >>> This is a call to the jQuery function $(), but Cheetah is treating it as >>> a tag. Escape the dollar sign like this: >>> >>> \$(document).delegate('*[data-toggle="lightbox"]', 'click', >>> function(event) { >>> event.preventDefault(); >>> $(this).ekkoLightbox(); >>> }); >>> >>> -tk >>> >>> On Fri, Oct 12, 2018 at 7:47 AM Auchtermuchty Weather < >>> shunr...@gmail.com> wrote: >>> >>>> >>>> Just to add, I use 'sudo' to run wee_reports as otherwise I get >>>> permission errors. >>>> >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "weewx-user" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to weewx-user+...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>>
-- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.