patch #2099962 [js] fix js error without frameset
This commit is contained in:
@@ -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 . '&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
|
||||
. '&checkprivs=' . urlencode($current['SCHEMA_NAME'])
|
||||
. '" title="' . sprintf($strCheckPrivsLong, htmlspecialchars($current['SCHEMA_NAME']))
|
||||
|
Reference in New Issue
Block a user