mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Schema in Chrome (bug #2947938)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1304 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -31,8 +31,8 @@ foreach (table_status() as $row) {
|
|||||||
foreach (foreign_keys($row["Name"]) as $val) {
|
foreach (foreign_keys($row["Name"]) as $val) {
|
||||||
if (!$val["db"]) {
|
if (!$val["db"]) {
|
||||||
$left = $base_left;
|
$left = $base_left;
|
||||||
if ($table_pos[$row["Name"]][1] || $table_pos[$row["Name"]][1]) {
|
if ($table_pos[$row["Name"]][1] || $table_pos[$val["table"]][1]) {
|
||||||
$left = min($table_pos[$row["Name"]][1], $table_pos[$val["table"]][1]) - 1;
|
$left = min(floatval($table_pos[$row["Name"]][1]), floatval($table_pos[$val["table"]][1])) - 1;
|
||||||
} else {
|
} else {
|
||||||
$base_left -= .1;
|
$base_left -= .1;
|
||||||
}
|
}
|
||||||
|
@@ -394,6 +394,6 @@ function schemaMouseup(ev) {
|
|||||||
for (var key in tablePos) {
|
for (var key in tablePos) {
|
||||||
s += '_' + key + ':' + Math.round(tablePos[key][0] * 10000) / 10000 + 'x' + Math.round(tablePos[key][1] * 10000) / 10000;
|
s += '_' + key + ':' + Math.round(tablePos[key][0] * 10000) / 10000 + 'x' + Math.round(tablePos[key][1] * 10000) / 10000;
|
||||||
}
|
}
|
||||||
document.cookie = 'adminer_schema=' + encodeURIComponent(s.substr(1)) + '; expires=' + date + '; path=' + location.pathname + location.search;
|
document.cookie = 'adminer_schema=' + encodeURIComponent(s.substr(1)) + '; expires=' + date + '; path="' + location.pathname + location.search + '"';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user