OK, there are actually 2 problems here that need to be fixed.
Firstly the code simply isn't adding the "target="_blank" to the link and secondly, even if it was, the JavaScript code is modifying the navigation links events. I really need to push out a new version of this calendar code as some of the code is now quite old and not optimized.
You need to do to things:
1.
File: ac-admin >
menu.admin.phpFind these lines (from ln 70):
$admin_menu.='
- Code: Select all
<li ';
if(ADMIN_PAGE=="".$type."") $admin_menu.='class="active"';
$admin_menu.='><a href="'.$href.'" title="'.$data["txt"].'" >'.$the_link.'</a></li>';
and modify them with this code:
- Code: Select all
$target = "";
if($type=="see_web") $target='target="_blank"';
$admin_menu.='
<li ';
if(ADMIN_PAGE=="".$type."") $admin_menu.='class="active"';
$admin_menu.='><a href="'.$href.'" title="'.$data["txt"].'" '.$target.'>'.$the_link.'</a></li>';
2.
File: ac-admin >
index.phpFind this lines (ln 125):
- Code: Select all
document.location.href=this.getChildren().get('href');
and change to this:
- Code: Select all
var elLnk=this.getChildren('a');
if(elLnk.get("target")=="") document.location.href=elLnk.get('href');
If you make those 2 changes, the calendar view "should" open in a new window.
Chris