Project

General

Profile

Bug #24541 » 16996.diff

Administrator Admin, 2011-01-14 19:30

View differences:

t3lib/js/extjs/contexthelp.js (working copy)
cls: 'typo3-csh-tooltip',
shadow: false,
dismissDelay: 0, // tooltip stays while mouse is over target
autoHide: true,
showDelay: 500, // show after 0.5 seconds
hideDelay: 3000, // hide after 3 seconds
hideDelay: 500, // hide after 3 seconds
closable: true,
isMouseOver: false,
listeners: {
beforeshow: showToolTipHelp,
render: function(tip) {
tip.body.on('click', function(event){
event.stopEvent();
if (tip.moreInfo) {
try {
top.TYPO3.ContextHelpWindow.open(tip.cshLink);
} catch(e) {
// do nothing
tip.body.on({
'click': {
fn: function(event) {
event.stopEvent();
if (tip.moreInfo) {
try {
top.TYPO3.ContextHelpWindow.open(tip.cshLink);
} catch(e) {
// do nothing
}
}
tip.hide();
}
}
});
tip.el.on({
'mouseover': {
fn: function() {
tip.isMouseOver = true;
}
},
'mouseout': {
fn: function() {
tip.isMouseOver = false;
tip.hide.defer(200, tip, []);
}
}
});
},
hide: function(tip) {
tip.setTitle('');
tip.body.dom.innerHTML = '';
},
beforehide: function(tip) {
if (tip.isMouseOver === true) {
return false;
}
return true;
},
scope: this
}
});
Ext.getBody().on({
'keydown': {
fn: function() {
tip.hide();
}
},
'click': {
fn: function() {
tip.hide();
}
}
});
},
(2-2/2)