1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00

AJAX title

This commit is contained in:
Jakub Vrana
2010-11-22 18:13:07 +01:00
parent 341290ce12
commit 0e29a6a783
2 changed files with 9 additions and 2 deletions

View File

@@ -197,6 +197,10 @@ function ajax(url, callback, data) {
if (redirect && history.replaceState) {
history.replaceState(null, '', redirect);
}
var title = xmlhttp.getResponseHeader('X-AJAX-Title');
if (title) {
document.title = decodeURIComponent(title);
}
callback(xmlhttp.responseText);
}
};