====== Related Lists in new Window ======
To open related lists in a new browser window, apply the following modification.
You could use the related lists like before, but if you click on a related list with your middle mouse button (mouse wheel) you will open a new window with this page. This is default behaviour in all modern browsers, but the used handler in vtiger prevent this usage.
==== File: layouts/vlayout/modules/Vtiger/resources/Detail.js ====
**Search: [~Line 1563] **
(ONLY the one in the function registerEventForRelatedTabClick !)
var element = jQuery('');
element.progressIndicator({
'position':'html',
'blockInfo' : {
'enabled' : true,
'elementToBlock' : detailContainer
}
});
**Remove this lines**
**(ONLY the one in the function registerEventForRelatedTabClick !)**
**Search:**
thisInstance.loadContents(url,urlAttributes).then(
** Insert before:**
if( e.which == 2 ) {
if(url.indexOf('index.php') === -1) {
url = 'index.php?' + url;
}
window.open(url);
return;
}
var element = jQuery('');
element.progressIndicator({
'position':'html',
'blockInfo' : {
'enabled' : true,
'elementToBlock' : detailContainer
}
});
**Search:**
jQuery('.related', detailContainer).on('click', 'li', function(e, urlAttributes){
**Replace with:**
jQuery('.related', detailContainer).on('mousedown', 'li', function(e, urlAttributes){