diff options
-rw-r--r-- | js/functions.js | 8 | ||||
-rw-r--r-- | themes.php | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/js/functions.js b/js/functions.js index d08f1b3c9c..9d104caedb 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3624,3 +3624,11 @@ function toggleRowColors($start) } } } + +/** + * Opens pma more themes link in themes browser, in new window instead of popup + * This way, we don't break HTML validity + */ +$(function () { + $("a[rel=_blank]").prop("target", "_blank"); +}); diff --git a/themes.php b/themes.php index e0347bd0c0..f343987291 100644 --- a/themes.php +++ b/themes.php @@ -25,7 +25,7 @@ require './libraries/header_scripts.inc.php'; <body id="bodythemes"> <h1>phpMyAdmin - <?php echo __('Theme'); ?></h1> -<p><a href="<?php echo PMA_linkURL('http://www.phpmyadmin.net/home_page/themes.php'); ?>#pma_<?php echo preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION); ?>"><?php echo __('Get more themes!'); ?></a></p> +<p><a href="<?php echo PMA_linkURL('http://www.phpmyadmin.net/home_page/themes.php'); ?>#pma_<?php echo preg_replace('/([0-9]*)\.([0-9]*)\..*/', '\1_\2', PMA_VERSION); ?>" rel="_blank"><?php echo __('Get more themes!'); ?></a></p> <?php $_SESSION['PMA_Theme_Manager']->printPreviews(); ?> |