Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added microhistory metadata to some links

  • Loading branch information...
commit 09fe4dcc5898fb3be8b8d692189c57c495a75c4a 1 parent 8565b9e
Rouslan Placella roccivic authored
5 js/config.js
@@ -16,6 +16,11 @@ AJAX.registerTeardown('config.js', function() {
16 16 $('#prefs_autoload').find('a').unbind('click');
17 17 });
18 18
  19 +AJAX.registerOnload('config.js', function() {
  20 + $('#topmenu2').find('li.active a').attr('rel', 'samepage');
  21 + $('#topmenu2').find('li:not(.active) a').attr('rel', 'newpage');
  22 +});
  23 +
19 24 // default values for fields
20 25 var defaultValues = {};
21 26
4 libraries/structure.lib.php
@@ -1841,7 +1841,7 @@ function PMA_getHtmlForActionRowInStructureTable($type, $tbl_storage_engine,
1841 1841 $html_output .= $titles['No' . $action];
1842 1842 $action_enabled = false;
1843 1843 } else {
1844   - $html_output .= '<a '
  1844 + $html_output .= '<a rel="samepage" '
1845 1845 . ($hasLinkClass ? 'class="ajax add_primary_key_anchor" ' : '')
1846 1846 . 'href="sql.php?' . $url_query . '&amp;sql_query='
1847 1847 . urlencode(
@@ -1887,7 +1887,7 @@ function PMA_getHtmlForFullTextAction($tbl_storage_engine, $type, $url_query,
1887 1887 || ($tbl_storage_engine == 'INNODB' && PMA_MYSQL_INT_VERSION >= 50604))
1888 1888 && (strpos(' ' . $type, 'text') || strpos(' ' . $type, 'char'))
1889 1889 ) {
1890   - $html_output .= '<a href="sql.php?' . $url_query . '&amp;sql_query='
  1890 + $html_output .= '<a rel="samepage" href="sql.php?' . $url_query . '&amp;sql_query='
1891 1891 . urlencode(
1892 1892 'ALTER TABLE ' . PMA_Util::backquote($GLOBALS['table'])
1893 1893 . ' ADD FULLTEXT(' . PMA_Util::backquote($row['Field'])
2  server_engines.php
@@ -56,7 +56,7 @@
56 56 ? ' disabled'
57 57 : '')
58 58 . '">' . "\n"
59   - . ' <td><a href="server_engines.php'
  59 + . ' <td><a rel="newpage" href="server_engines.php'
60 60 . PMA_generate_common_url(array('engine' => $engine)) . '">' . "\n"
61 61 . ' ' . htmlspecialchars($details['Engine']) . "\n"
62 62 . ' </a></td>' . "\n"

0 comments on commit 09fe4dc

Please sign in to comment.
Something went wrong with that request. Please try again.