mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
AJAX title
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user