Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added microhistory metadata to some links

  • Loading branch information...
commit 09fe4dcc5898fb3be8b8d692189c57c495a75c4a 1 parent 8565b9e
@roccivic roccivic authored
View
5 js/config.js
@@ -16,6 +16,11 @@ AJAX.registerTeardown('config.js', function() {
$('#prefs_autoload').find('a').unbind('click');
});
+AJAX.registerOnload('config.js', function() {
+ $('#topmenu2').find('li.active a').attr('rel', 'samepage');
+ $('#topmenu2').find('li:not(.active) a').attr('rel', 'newpage');
+});
+
// default values for fields
var defaultValues = {};
View
4 libraries/structure.lib.php
@@ -1841,7 +1841,7 @@ function PMA_getHtmlForActionRowInStructureTable($type, $tbl_storage_engine,
$html_output .= $titles['No' . $action];
$action_enabled = false;
} else {
- $html_output .= '<a '
+ $html_output .= '<a rel="samepage" '
. ($hasLinkClass ? 'class="ajax add_primary_key_anchor" ' : '')
. 'href="sql.php?' . $url_query . '&amp;sql_query='
. urlencode(
@@ -1887,7 +1887,7 @@ function PMA_getHtmlForFullTextAction($tbl_storage_engine, $type, $url_query,
|| ($tbl_storage_engine == 'INNODB' && PMA_MYSQL_INT_VERSION >= 50604))
&& (strpos(' ' . $type, 'text') || strpos(' ' . $type, 'char'))
) {
- $html_output .= '<a href="sql.php?' . $url_query . '&amp;sql_query='
+ $html_output .= '<a rel="samepage" href="sql.php?' . $url_query . '&amp;sql_query='
. urlencode(
'ALTER TABLE ' . PMA_Util::backquote($GLOBALS['table'])
. ' ADD FULLTEXT(' . PMA_Util::backquote($row['Field'])
View
2  server_engines.php
@@ -56,7 +56,7 @@
? ' disabled'
: '')
. '">' . "\n"
- . ' <td><a href="server_engines.php'
+ . ' <td><a rel="newpage" href="server_engines.php'
. PMA_generate_common_url(array('engine' => $engine)) . '">' . "\n"
. ' ' . htmlspecialchars($details['Engine']) . "\n"
. ' </a></td>' . "\n"
Please sign in to comment.
Something went wrong with that request. Please try again.