mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Permanent link in schema
This commit is contained in:
@@ -400,6 +400,9 @@ function schemaMouseup(ev) {
|
||||
for (var key in tablePos) {
|
||||
s += '_' + key + ':' + Math.round(tablePos[key][0] * 10000) / 10000 + 'x' + Math.round(tablePos[key][1] * 10000) / 10000;
|
||||
}
|
||||
cookie('adminer_schema=' + encodeURIComponent(s.substr(1)), 30, '; path="' + location.pathname + location.search + '"');
|
||||
s = encodeURIComponent(s.substr(1));
|
||||
var link = document.getElementById('schema-link');
|
||||
link.href = link.href.replace(/[^=]+$/, '') + s;
|
||||
cookie('adminer_schema=' + s, 30, '; path="' + location.pathname + location.search + '"');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user