diff options
author | Jo Michael <me@mynetx.net> | 2012-03-17 01:37:34 +0400 |
---|---|---|
committer | Jo Michael <me@mynetx.net> | 2012-03-17 01:37:34 +0400 |
commit | 7a88029f455e5744fc5911e2fe852c6e1ac670f7 (patch) | |
tree | 922617b6d4836429ab39afbadbae706dc2ca047e | |
parent | 92dddc2d0ebe3f8959aa6ac326c4bd077aac4d58 (diff) |
Open "More themes" link from theme previewer in new tab instead of popup
-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(); ?> |