fixed #3341, introduced new navigation data property, "targetBlank", deprecated "target", which was never exposed anyway, and updated default values

This commit is contained in:
Julian Lam
2015-07-20 11:27:21 -04:00
parent 33434ed13d
commit 22251cb0bd
4 changed files with 32 additions and 26 deletions

View File

@@ -80,7 +80,7 @@ $(document).ready(function() {
var isAdminRoute = url.startsWith('admin') && window.location.pathname.indexOf(RELATIVE_PATH + '/admin') !== 0;
var uploadsOrApi = url.startsWith('uploads') || url.startsWith('api');
if (isAdminRoute || uploadsOrApi) {
window.open(RELATIVE_PATH + '/' + url, '_blank');
window.open(RELATIVE_PATH + '/' + url, '_top');
return true;
}
return false;