More Robust mactionWorkarounds
The previous version was OK with itex2MML output. But this one will not get tripped up by extraneous text nodes.
This commit is contained in:
parent
f9bd8f081f
commit
6be9c5ca6a
|
@ -43,15 +43,13 @@ function fixRunIn() {
|
||||||
|
|
||||||
function mactionWorkarounds() {
|
function mactionWorkarounds() {
|
||||||
$$('maction[actiontype="tooltip"]').each( function(mtool){
|
$$('maction[actiontype="tooltip"]').each( function(mtool){
|
||||||
Element.writeAttribute(mtool, 'title', mtool.lastChild.firstChild.data);
|
Element.writeAttribute(mtool, 'title',
|
||||||
});
|
Element.firstDescendant(mtool).nextSibling.firstChild.data);
|
||||||
|
});
|
||||||
$$('maction[actiontype="statusline"]').each( function(mstatus){
|
$$('maction[actiontype="statusline"]').each( function(mstatus){
|
||||||
Event.observe(mstatus, 'mouseover', function(){
|
var v = Element.firstDescendant(mstatus).nextSibling.firstChild.data;
|
||||||
window.status = mstatus.lastChild.firstChild.data;
|
Event.observe(mstatus, 'mouseover', function(){window.status = v;});
|
||||||
});
|
Event.observe(mstatus, 'mouseout', function(){window.status = '';});
|
||||||
Event.observe(mstatus, 'mouseout', function(){
|
|
||||||
window.status = '';
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue