mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
* Mail: open notification email of own domain as popup
This commit is contained in:
parent
7428e2d7cd
commit
0faa8b367e
@ -1,12 +1,11 @@
|
||||
/**
|
||||
* mail - handle mailto and other links in preview
|
||||
* EGroupware Mail - handle mailto and other links in preview
|
||||
*
|
||||
* @link http://www.egroupware.org
|
||||
* @author EGroupware GmbH [info@egroupware.org]
|
||||
* @copyright (c) 2014 by EGroupware GmbH <info-AT-egroupware.org>
|
||||
* @package mail
|
||||
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
||||
* @version $Id$
|
||||
*/
|
||||
|
||||
/*egw:uses
|
||||
@ -24,6 +23,13 @@ jQuery(function()
|
||||
|
||||
return false; // cant do event.stopImediatePropagation() in on!
|
||||
}
|
||||
// open links with own orgin and "index.php?" as popup (not eg. share.php or *dav.php)
|
||||
else if ((this.href[0] === '/' || this.href.match(new RegExp('^'+location.protocol+'//'+location.host+'/'))) &&
|
||||
this.href.match(/\/index.php\?/))
|
||||
{
|
||||
top.egw.openPopup(this.href.replace(/([?&])no_popup=[^&]*/, '\1'), 800, 600, '_blank');
|
||||
return false;
|
||||
}
|
||||
else // add target=_blank to all other links, gives CSP error and would open in preview
|
||||
{
|
||||
this.target = '_blank';
|
||||
|
Loading…
Reference in New Issue
Block a user