patch #2099962 [js] fix js error without frameset

This commit is contained in:
Marc Delisle
2008-09-09 17:05:58 +00:00
parent 023c4442e0
commit 8a4d1084d3
3 changed files with 6 additions and 4 deletions

View File

@@ -211,7 +211,7 @@ if ($databases_count > 0) {
}
echo ' <td class="name">' . "\n"
. ' <a onclick="'
. 'if (window.parent.openDb(\'' . PMA_jsFormat($current['SCHEMA_NAME'], false) . '\')) return false;'
. 'if (window.parent.openDb && window.parent.openDb(\'' . PMA_jsFormat($current['SCHEMA_NAME'], false) . '\')) return false;'
. '" href="index.php?' . $url_query . '&amp;db='
. urlencode($current['SCHEMA_NAME']) . '" title="'
. sprintf($strJumpToDB, htmlspecialchars($current['SCHEMA_NAME']))
@@ -251,7 +251,7 @@ if ($databases_count > 0) {
echo ' <td class="tool">' . "\n"
. ' <a onclick="
// <![CDATA[
window.parent.setDb(\'' . PMA_jsFormat($current['SCHEMA_NAME']) . '\');
if (window.parent.setDb) window.parent.setDb(\'' . PMA_jsFormat($current['SCHEMA_NAME']) . '\');
// ]]>" href="./server_privileges.php?' . $url_query
. '&amp;checkprivs=' . urlencode($current['SCHEMA_NAME'])
. '" title="' . sprintf($strCheckPrivsLong, htmlspecialchars($current['SCHEMA_NAME']))