Added microhistory metadata to some links

This commit is contained in:
Rouslan Placella 2012-11-25 20:37:36 +00:00
parent 8565b9e4d5
commit 09fe4dcc58
3 changed files with 8 additions and 3 deletions

View File

@ -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 File

@ -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 File

@ -56,7 +56,7 @@ if (empty($_REQUEST['engine'])
? ' 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"