JQuery tooltip() not functional in Studio and LMS

61 views
Skip to first unread message

Bob Light

unread,
Aug 21, 2014, 3:04:40 PM8/21/14
to edx-...@googlegroups.com
I have an XBlock running in Studio, LMS and the xblock workbench

Only in the XBlock workbench does the jquery tooltip work.

I noticed that jquery.qtip.min.js uses "use strict".... and I've had problems in the past with that.... any ideas?

the line in question which puts the tooltip is:


 - Bob Light

Colin Fredericks

unread,
Aug 22, 2014, 9:35:12 AM8/22/14
to edx-...@googlegroups.com
Yeah, same problems on edX.org - tooltips seem to be disabled somehow. It wasn't a huge problem so I didn't complain, but if there's a way around it I'd love to know.

Bob Light

unread,
Aug 26, 2014, 11:04:58 AM8/26/14
to edx-...@googlegroups.com
Colin,

I just rolled my own for the special purpose I needed within my xblock - not something you'd want to do site-wide.  I suspect that it has something to do with the "use strict" mode that the tooltip code uses.  Studio and LMS load javascript into the page in a very different way than workbench does....(and in your case, perhaps edx.org does this also).... and the "use strict" creates a problem with scoping.

Anyways... my immediate problem is solved.

  - Bob Light
Reply all
Reply to author
Forward
0 new messages