Hello,
I found a bug when using jqueryui tooltip widget (
https://jqueryui.com/tooltip/) in the same page of jsmol.
To reproduce edit file simple1.htm from jsmol package:
1. Add the jqueryui js and css files at <head>:
<link rel="stylesheet" href="//
code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
2. Add the call to create tooltip inside <script>:
$(function() {
$( document ).tooltip();
});
3. At beginning of body add some element that has title="something" tag:
<p title="go jsmol!">testing</p>
4. Save, reload the page, open chrome dev tools console and use the mouse
to hover the text. This is the error:
"Uncaught TypeError: h.removeAttr is not a function" jquery-ui.min.js:13
Also the tooltip is stuck at the bottom of screen. This seems to be always
the case, I tried others jsmol pages and the tooltip is always at the
bottom even if I set the position using the options from tooltip widget.
You can also remove the jsmol js file to check that tooltip works when you
don't have jsmol.
Please, I would appreciate if someone could confirm this.
best regards
Fausto
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users