1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

Ajax reload with POST data

This commit is contained in:
Jakub Vrana
2011-03-12 00:20:27 +01:00
parent d3609817a1
commit f6e29f78f6
3 changed files with 7 additions and 1 deletions

View File

@@ -4,6 +4,9 @@
* @param string first three characters of database system version
*/
function bodyLoad(version) {
if (history.state) { // copied from editor/static/editing.js
onpopstate(history);
}
var jushRoot = '../externals/jush/';
var script = document.createElement('script');
script.src = jushRoot + 'jush.js';

View File

@@ -354,7 +354,7 @@ function ajaxMain(url, data, event) {
}
/** Revive page from history
* @param PopStateEvent
* @param PopStateEvent|history
*/
window.onpopstate = function (event) {
ajaxSend(location.href, event.state, 1); // 1 - disable pushState

View File

@@ -1,4 +1,7 @@
// Editor specific functions
function bodyLoad(version) {
if (history.state) {
onpopstate(history);
}
}